Changeset 4108:5c9b14d00899 in roaraudio


Ignore:
Timestamp:
07/29/10 18:28:42 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed wrong display of pos in case of server not supporting pos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarctl.c

    r4047 r4108  
    185185                                     s.info.codec == ROAR_CODEC_DEFAULT ? " native" : ""); 
    186186// printf("Server Output rate: %i", s.info.rate); 
    187   if ( g_verbose > 1 ) 
     187  if ( g_verbose > 1 && s.pos != (uint32_t)-1 ) 
    188188   printf("Server Position       : %lu S (%.3fs)\n", (unsigned long int) s.pos, (float)s.pos/(s.info.rate*s.info.channels)); 
    189189} 
     
    351351   printf("Relativ position id   : %i (synchronized)\n", s.pos_rel_id); 
    352352  } 
    353   if ( g_verbose > 1 ) { 
     353  if ( g_verbose > 1 && s.pos != (uint32_t)-1 ) { 
    354354   if ( s.info.rate && s.info.channels ) { 
    355355    printf("Position              : %lu S (%.3fs)\n", (unsigned long int) s.pos, 
Note: See TracChangeset for help on using the changeset viewer.