Changeset 1186:b7ba4a4d62bd in roaraudio


Ignore:
Timestamp:
01/29/09 13:37:35 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

changed sources interface a bit: added support for an optional codec=-prefix for the codes given via -sO to be more like -oO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/sources.c

    r1031 r1186  
    142142 
    143143 // TODO: finy out a better way of doing auto detetion without need for seek! 
    144  if ( !options ) { 
     144 if ( options == NULL ) { 
    145145  if ( (len = read(fh, buf, 64)) < 1 ) { 
    146146   close(fh); 
     
    158158  } 
    159159 } else { 
     160  if ( !strncmp(options, "codec=", 6) ) 
     161   options += 6; 
     162 
    160163  if ( (codec = roar_str2codec(options)) == -1 ) { 
    161164   close(fh); 
     
    198201 
    199202 if ( options != NULL && *options ) { 
     203  if ( !strncmp(options, "codec=", 6) ) 
     204   options += 6; 
     205 
    200206  if ( (codec = roar_str2codec(options)) == -1 ) { 
    201207   return -1; 
Note: See TracChangeset for help on using the changeset viewer.