Changeset 1186:b7ba4a4d62bd in roaraudio
- Timestamp:
- 01/29/09 13:37:35 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/sources.c
r1031 r1186 142 142 143 143 // TODO: finy out a better way of doing auto detetion without need for seek! 144 if ( !options) {144 if ( options == NULL ) { 145 145 if ( (len = read(fh, buf, 64)) < 1 ) { 146 146 close(fh); … … 158 158 } 159 159 } else { 160 if ( !strncmp(options, "codec=", 6) ) 161 options += 6; 162 160 163 if ( (codec = roar_str2codec(options)) == -1 ) { 161 164 close(fh); … … 198 201 199 202 if ( options != NULL && *options ) { 203 if ( !strncmp(options, "codec=", 6) ) 204 options += 6; 205 200 206 if ( (codec = roar_str2codec(options)) == -1 ) { 201 207 return -1;
Note: See TracChangeset
for help on using the changeset viewer.