Changeset 2912:b133cf48b1bc in roaraudio


Ignore:
Timestamp:
10/14/09 18:48:07 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added a lot debug lions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/config.c

    r2899 r2912  
    8181 char * codec_str, * option_str, * value_str; 
    8282 
     83 ROAR_DBG("roar_libroar_config_parse_codec(config=%p, txt='%s') = ?", config, txt); 
     84 
    8385 if ( config == NULL || txt == NULL ) 
    8486  return -1; 
    8587 
     88 ROAR_DBG("roar_libroar_config_parse_codec(config=%p, txt='%s') = ?", config, txt); 
     89 
    8690 codec_str = strtok(txt, ":"); 
    8791 
     
    98102 if ( value_str == NULL ) 
    99103  return -1; 
     104 
     105 ROAR_DBG("roar_libroar_config_parse_codec(config=%p, txt='%s') = ?", config, txt); 
    100106 
    101107 if ( (codec = roar_str2codec(codec_str)) == -1 ) { 
     
    104110 } 
    105111 
     112 ROAR_DBG("roar_libroar_config_parse_codec(config=%p, txt='%s'): codec=%i", config, txt, codec); 
     113 
    106114 if ( (codec_cfg = roar_libroar_config_codec_get_conf(codec, 1, config)) == NULL ) 
    107115  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); 
    108118 
    109119 if ( !strcmp(option_str, "q") || !strcmp(option_str, "quality") ) { 
     
    216226 int need_new = 1; 
    217227 
     228 ROAR_DBG("roar_libroar_config_codec_get_conf(codec=%i, create=%i, config=%p) = ?", codec, create, config); 
     229 
    218230 if ( codec < 0 || create < 0 ) 
    219231  return NULL; 
     232 
     233 ROAR_DBG("roar_libroar_config_codec_get_conf(codec=%i, create=%i, config=%p) = ?", codec, create, config); 
    220234 
    221235 if ( config->codecs.num == 0 ) { 
     
    232246 } 
    233247 
     248 ROAR_DBG("roar_libroar_config_codec_get_conf(codec=%i, create=%i, config=%p) = ?", codec, create, config); 
     249 
    234250 if ( !create ) 
    235251  return NULL; 
Note: See TracChangeset for help on using the changeset viewer.