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:
reimar 2010-02-27 06:17:14 +00:00
parent 09cf021307
commit 50fed7d1f9
1 changed files with 3 additions and 3 deletions

View File

@ -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){