summaryrefslogtreecommitdiff
path: root/apps/codecs
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
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')
-rw-r--r--apps/codecs/Tremor/vorbisfile.c2
-rw-r--r--apps/codecs/vorbis.c2
2 files changed, 0 insertions, 4 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);
diff --git a/apps/codecs/vorbis.c b/apps/codecs/vorbis.c
index e77ecada0c..fb50859b8f 100644
--- a/apps/codecs/vorbis.c
+++ b/apps/codecs/vorbis.c
@@ -27,8 +27,6 @@ static struct codec_api *rb;
27 27
28/* Some standard functions and variables needed by Tremor */ 28/* Some standard functions and variables needed by Tremor */
29 29
30int errno;
31
32size_t read_handler(void *ptr, size_t size, size_t nmemb, void *datasource) 30size_t read_handler(void *ptr, size_t size, size_t nmemb, void *datasource)
33{ 31{
34 (void)datasource; 32 (void)datasource;