Changeset 5623:cd8f318fd1a9 in roaraudio


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

Fixed metadata handling in meta.c.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5622 r5623  
    66        * Implemented watchdog (Closes: #291) 
    77        * Added meta generes (See: #301) 
     8        * Fixed metadata handling in meta.c. 
    89 
    910v. 1.0beta4 - Mon Aug 06 2012 16:43 CEST 
  • include/libroar/meta.h

    r5381 r5623  
    4646int roar_meta_free (struct roar_meta * meta); 
    4747 
    48 char * roar_meta_strtype(const int type); 
     48const char * roar_meta_strtype(const int type); 
    4949int    roar_meta_inttype(const char * type); 
    5050 
  • 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.