Changeset 5623:cd8f318fd1a9 in roaraudio for libroar


Ignore:
Timestamp:
08/17/12 02:47:05 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Fixed metadata handling in meta.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/meta.c

    r5622 r5623  
    424424}; 
    425425 
    426 // TODO: Why do we return a non-const buffer here? 
    427 char * roar_meta_strtype(const int type) { 
     426const char * roar_meta_strtype(const int type) { 
    428427 int i; 
    429428 static char name[ROAR_META_MAX_NAMELEN]; 
     
    632631  // we test for the key, unknown keys get ignored. 
    633632  if ( !strcasecmp(k, "rate") ) { 
    634    info->rate     = atoi(v); 
     633   info->rate     = roar_str2rate(v); 
    635634  } else if ( !strcasecmp(k, "bits") ) { 
    636    info->bits     = atoi(v); 
     635   info->bits     = roar_str2bits(v); 
    637636  } else if ( !strcasecmp(k, "channels") ) { 
    638    info->channels = atoi(v); 
     637   info->channels = roar_str2channels(v); 
    639638  } else if ( !strcasecmp(k, "codec") ) { 
    640639   info->codec    = roar_str2codec(v); 
Note: See TracChangeset for help on using the changeset viewer.