Changeset 608:745a06132506 in roaraudio for roard/codecfilter_speex.c
- Timestamp:
- 08/19/08 21:01:30 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/codecfilter_speex.c
r397 r608 67 67 int cf_speex_read(CODECFILTER_USERDATA_T inst, char * buf, int len) { 68 68 struct codecfilter_speex_inst * self = (struct codecfilter_speex_inst *) inst; 69 struct roar_stream * s = (struct roar_stream *) self->stream;70 69 int mode; 71 70 uint16_t ui; … … 78 77 if ( ! self->decoder ) { 79 78 ROAR_DBG("cf_speex_read(*): no decoder, starting one!"); 80 if ( read(s->fh, &ui, 2) != 2 )79 if ( stream_vio_s_read(self->stream, &ui, 2) != 2 ) 81 80 return 0; 82 81 … … 137 136 while (still_todo) { 138 137 ROAR_WARN("cf_speex_read(*): we sill need %i frames", still_todo); 139 if ( read(s->fh, &ui, 2) != 2 )138 if ( stream_vio_s_read(self->stream, &ui, 2) != 2 ) 140 139 return -1; 141 140 … … 145 144 return 0; 146 145 147 if ( read(s->fh, self->cc, ui) != ui )146 if ( stream_vio_s_read(self->stream, self->cc, ui) != ui ) 148 147 break; 149 148
Note: See TracChangeset
for help on using the changeset viewer.