mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
netfile: fix invalid conversion
This commit is contained in:
@@ -200,7 +200,7 @@ static int request_file(URL *url);
|
|||||||
static int getCacheSlot(FILE *fd);
|
static int getCacheSlot(FILE *fd);
|
||||||
static int push(FILE *fd, char *buf, long len);
|
static int push(FILE *fd, char *buf, long len);
|
||||||
static int pop(FILE *fd, char *buf, long len);
|
static int pop(FILE *fd, char *buf, long len);
|
||||||
static void CacheFillThread(void *url);
|
static void *CacheFillThread(void *url);
|
||||||
static void ShoutCAST_MetaFilter(STREAM_FILTER *);
|
static void ShoutCAST_MetaFilter(STREAM_FILTER *);
|
||||||
static void ShoutCAST_DestroyFilter(void *a);
|
static void ShoutCAST_DestroyFilter(void *a);
|
||||||
static STREAM_FILTER *ShoutCAST_InitFilter(int);
|
static STREAM_FILTER *ShoutCAST_InitFilter(int);
|
||||||
@@ -545,7 +545,7 @@ int request_file(URL *url)
|
|||||||
pthread_create(
|
pthread_create(
|
||||||
&cache[slot].fill_thread,
|
&cache[slot].fill_thread,
|
||||||
&cache[slot].attr,
|
&cache[slot].attr,
|
||||||
(void *(*)(void*))&CacheFillThread, (void*)&cache[slot]);
|
CacheFillThread, (void*)&cache[slot]);
|
||||||
dprintf(stderr, "request_file: slot %d fill_thread 0x%x\n", slot, (int)cache[slot].fill_thread);
|
dprintf(stderr, "request_file: slot %d fill_thread 0x%x\n", slot, (int)cache[slot].fill_thread);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1669,12 +1669,12 @@ static bool getChunkSizeLine(STREAM_CACHE *scache,char *line,int size)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CacheFillThread(void *c)
|
void *CacheFillThread(void *c)
|
||||||
{
|
{
|
||||||
STREAM_CACHE *scache = (STREAM_CACHE*)c;
|
STREAM_CACHE *scache = (STREAM_CACHE*)c;
|
||||||
|
|
||||||
if(scache->closed)
|
if(scache->closed)
|
||||||
return;
|
return NULL;
|
||||||
|
|
||||||
set_threadname("netfile:cache");
|
set_threadname("netfile:cache");
|
||||||
dprintf(stderr, "CacheFillThread: thread started, using stream %p\n", scache->fd);
|
dprintf(stderr, "CacheFillThread: thread started, using stream %p\n", scache->fd);
|
||||||
|
Reference in New Issue
Block a user