diff options
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/codecs/Tremor/vorbisfile.c | 2 | ||||
| -rw-r--r-- | apps/codecs/vorbis.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/apps/codecs/Tremor/vorbisfile.c b/apps/codecs/Tremor/vorbisfile.c index 54e36d2..4d36ab3 100644 --- a/apps/codecs/Tremor/vorbisfile.c +++ b/apps/codecs/Tremor/vorbisfile.c @@ -61,12 +61,10 @@ /* read a little more data from the file/pipe into the ogg_sync framer */ static long _get_data(OggVorbis_File *vf){ - errno=0; if(vf->datasource){ char *buffer=(char *)ogg_sync_bufferin(vf->oy,CHUNKSIZE); long bytes=(vf->callbacks.read_func)(buffer,1,CHUNKSIZE,vf->datasource); if(bytes>0)ogg_sync_wrote(vf->oy,bytes); - if(bytes==0 && errno)return(-1); return(bytes); }else return(0); diff --git a/apps/codecs/vorbis.c b/apps/codecs/vorbis.c index e77ecad..fb50859 100644 --- a/apps/codecs/vorbis.c +++ b/apps/codecs/vorbis.c @@ -27,8 +27,6 @@ static struct codec_api *rb; /* Some standard functions and variables needed by Tremor */ -int errno; - size_t read_handler(void *ptr, size_t size, size_t nmemb, void *datasource) { (void)datasource; |