Changeset 486:5f7954982f5a in roaraudio


Ignore:
Timestamp:
08/13/08 16:57:00 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added some bugfixed because of roar_stream_m2s() change

Location:
roard
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • roard/codecfilter.c

    r432 r486  
    6161 
    6262 *codecfilter_id = -1; 
     63 
     64 ROAR_DBG("codecfilter_open(*): codecfilter='%s', info->id=%i", codecfilter, ROAR_STREAM(info)->id); 
    6365 
    6466 for (i = 0; g_codecfilter[i].name != NULL; i++) { 
  • roard/codecfilter_vorbis.c

    r382 r486  
    1919 self->stream               = info; 
    2020// self->outlen               = ROAR_OUTPUT_BUFFER_SAMPLES * s->info.channels * s->info.bits / 8; // optimal size 
     21 
     22 ROAR_DBG("cf_vorbis_open(*): info->id=%i", ROAR_STREAM(info)->id); 
    2123 
    2224 if ( (self->in = fdopen(((struct roar_stream*)info)->fh, "r")) == NULL ) { 
  • roard/meta.c

    r113 r486  
    119119int stream_meta_clear (int id) { 
    120120 int i; 
    121  struct roar_stream_server * s = g_streams[id]; 
     121 struct roar_stream_server * s = NULL; 
     122 
     123 if ( id < 0 || id > ROAR_STREAMS_MAX ) { 
     124  ROAR_ERR("stream_meta_clear(id=%i): Can not clear meta data on stream: invalid stream ID", id); 
     125  return -1; 
     126 } 
     127 
     128 s = g_streams[id]; 
    122129 
    123130 if ( s == NULL ) 
  • roard/req.c

    r465 r486  
    1 //req.c: 
     1 
    22 
    33#include "roard.h" 
     
    8787 } 
    8888 
     89 ROAR_STREAM(s)->id = stream; // roar_stream_m2s() resets this 
     90 
    8991 mes->cmd     = ROAR_CMD_OK; 
    9092 mes->stream  = stream; 
Note: See TracChangeset for help on using the changeset viewer.