Changeset 1833:754fa3c5d64d in roaraudio


Ignore:
Timestamp:
05/23/09 01:40:14 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

print streamed codec only if unequal to operation codec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarctl.c

    r1811 r1833  
    269269                                       s.info.codec == ROAR_CODEC_DEFAULT ? " native" : ""); 
    270270  if ( roar_stream_get_info(con, &s, &info) != -1 ) { 
    271    printf("Input codec (streamed): %2i (%s%s)\n", info.codec, roar_codec2str(info.codec), 
    272                                       info.codec == ROAR_CODEC_DEFAULT ? " native" : ""); 
     271   if ( info.codec != s.info.codec ) { 
     272    printf("Input codec (streamed): %2i (%s%s)\n", info.codec, roar_codec2str(info.codec), 
     273                                       info.codec == ROAR_CODEC_DEFAULT ? " native" : ""); 
     274   } 
     275 
    273276   if ( g_verbose ) { 
    274277    printf("Input block size      : %i Byte\n", info.block_size); 
Note: See TracChangeset for help on using the changeset viewer.