mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-22 03:22:48 -05:00
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
This commit is contained in:
parent
af78719bb6
commit
3e8568980d
2 changed files with 0 additions and 4 deletions
|
|
@ -61,12 +61,10 @@
|
||||||
|
|
||||||
/* read a little more data from the file/pipe into the ogg_sync framer */
|
/* read a little more data from the file/pipe into the ogg_sync framer */
|
||||||
static long _get_data(OggVorbis_File *vf){
|
static long _get_data(OggVorbis_File *vf){
|
||||||
errno=0;
|
|
||||||
if(vf->datasource){
|
if(vf->datasource){
|
||||||
char *buffer=(char *)ogg_sync_bufferin(vf->oy,CHUNKSIZE);
|
char *buffer=(char *)ogg_sync_bufferin(vf->oy,CHUNKSIZE);
|
||||||
long bytes=(vf->callbacks.read_func)(buffer,1,CHUNKSIZE,vf->datasource);
|
long bytes=(vf->callbacks.read_func)(buffer,1,CHUNKSIZE,vf->datasource);
|
||||||
if(bytes>0)ogg_sync_wrote(vf->oy,bytes);
|
if(bytes>0)ogg_sync_wrote(vf->oy,bytes);
|
||||||
if(bytes==0 && errno)return(-1);
|
|
||||||
return(bytes);
|
return(bytes);
|
||||||
}else
|
}else
|
||||||
return(0);
|
return(0);
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,6 @@ static struct codec_api *rb;
|
||||||
|
|
||||||
/* Some standard functions and variables needed by Tremor */
|
/* Some standard functions and variables needed by Tremor */
|
||||||
|
|
||||||
int errno;
|
|
||||||
|
|
||||||
size_t read_handler(void *ptr, size_t size, size_t nmemb, void *datasource)
|
size_t read_handler(void *ptr, size_t size, size_t nmemb, void *datasource)
|
||||||
{
|
{
|
||||||
(void)datasource;
|
(void)datasource;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue