Changeset 2912:b133cf48b1bc in roaraudio
- Timestamp:
- 10/14/09 18:48:07 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/config.c
r2899 r2912 81 81 char * codec_str, * option_str, * value_str; 82 82 83 ROAR_DBG("roar_libroar_config_parse_codec(config=%p, txt='%s') = ?", config, txt); 84 83 85 if ( config == NULL || txt == NULL ) 84 86 return -1; 85 87 88 ROAR_DBG("roar_libroar_config_parse_codec(config=%p, txt='%s') = ?", config, txt); 89 86 90 codec_str = strtok(txt, ":"); 87 91 … … 98 102 if ( value_str == NULL ) 99 103 return -1; 104 105 ROAR_DBG("roar_libroar_config_parse_codec(config=%p, txt='%s') = ?", config, txt); 100 106 101 107 if ( (codec = roar_str2codec(codec_str)) == -1 ) { … … 104 110 } 105 111 112 ROAR_DBG("roar_libroar_config_parse_codec(config=%p, txt='%s'): codec=%i", config, txt, codec); 113 106 114 if ( (codec_cfg = roar_libroar_config_codec_get_conf(codec, 1, config)) == NULL ) 107 115 return -1; 116 117 ROAR_DBG("roar_libroar_config_parse_codec(config=%p, txt='%s'): codec=%i, codec_cfg=%p", config, txt, codec, codec_cfg); 108 118 109 119 if ( !strcmp(option_str, "q") || !strcmp(option_str, "quality") ) { … … 216 226 int need_new = 1; 217 227 228 ROAR_DBG("roar_libroar_config_codec_get_conf(codec=%i, create=%i, config=%p) = ?", codec, create, config); 229 218 230 if ( codec < 0 || create < 0 ) 219 231 return NULL; 232 233 ROAR_DBG("roar_libroar_config_codec_get_conf(codec=%i, create=%i, config=%p) = ?", codec, create, config); 220 234 221 235 if ( config->codecs.num == 0 ) { … … 232 246 } 233 247 248 ROAR_DBG("roar_libroar_config_codec_get_conf(codec=%i, create=%i, config=%p) = ?", codec, create, config); 249 234 250 if ( !create ) 235 251 return NULL;
Note: See TracChangeset
for help on using the changeset viewer.