summaryrefslogtreecommitdiff
path: root/apps/codecs/Tremor/vorbisfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/Tremor/vorbisfile.c')
-rw-r--r--apps/codecs/Tremor/vorbisfile.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/codecs/Tremor/vorbisfile.c b/apps/codecs/Tremor/vorbisfile.c
index 54e36d29af..4d36ab3b48 100644
--- a/apps/codecs/Tremor/vorbisfile.c
+++ b/apps/codecs/Tremor/vorbisfile.c
@@ -61,12 +61,10 @@
61 61
62/* read a little more data from the file/pipe into the ogg_sync framer */ 62/* read a little more data from the file/pipe into the ogg_sync framer */
63static long _get_data(OggVorbis_File *vf){ 63static long _get_data(OggVorbis_File *vf){
64 errno=0;
65 if(vf->datasource){ 64 if(vf->datasource){
66 char *buffer=(char *)ogg_sync_bufferin(vf->oy,CHUNKSIZE); 65 char *buffer=(char *)ogg_sync_bufferin(vf->oy,CHUNKSIZE);
67 long bytes=(vf->callbacks.read_func)(buffer,1,CHUNKSIZE,vf->datasource); 66 long bytes=(vf->callbacks.read_func)(buffer,1,CHUNKSIZE,vf->datasource);
68 if(bytes>0)ogg_sync_wrote(vf->oy,bytes); 67 if(bytes>0)ogg_sync_wrote(vf->oy,bytes);
69 if(bytes==0 && errno)return(-1);
70 return(bytes); 68 return(bytes);
71 }else 69 }else
72 return(0); 70 return(0);