mirror of https://github.com/mpv-player/mpv
Restructure #ifs to be clearer, also ensures that we return from the thread
proc instead of calling exit() on __MINGW32__. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30754 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
09cf021307
commit
50fed7d1f9
|
@ -430,12 +430,12 @@ static void ThreadProc( void *s ){
|
|||
} while (cache_execute_control(s));
|
||||
#if defined(__MINGW32__) || defined(__OS2__)
|
||||
_endthread();
|
||||
#endif
|
||||
#ifdef PTHREAD_CACHE
|
||||
#elif defined(PTHREAD_CACHE)
|
||||
return NULL;
|
||||
#endif
|
||||
#else
|
||||
// make sure forked code never leaves this function
|
||||
exit(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
int cache_stream_fill_buffer(stream_t *s){
|
||||
|
|
Loading…
Reference in New Issue