summaryrefslogtreecommitdiff
path: root/apps/codecs/Tremor/vorbisfile.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-03-01 01:07:56 +0000
committerJens Arnold <amiconn@rockbox.org>2006-03-01 01:07:56 +0000
commit3e8568980d2ccfdb65ea3dcb92e858a2dd160129 (patch)
tree67bcc23a2757c5b4130eed6535deddfa001d2946 /apps/codecs/Tremor/vorbisfile.c
parentaf78719bb6b3fce086077610756783034e892915 (diff)
downloadrockbox-3e8568980d2ccfdb65ea3dcb92e858a2dd160129.tar.gz
rockbox-3e8568980d2ccfdb65ea3dcb92e858a2dd160129.zip
Remove all references to errno, it's unnecessary since the codec doesn't directly access files. Should really fix the TLS issues with errno this time...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8873 a1c6a512-1295-4272-9138-f99709370657
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);