[MPlayer-cvslog] r30397 - trunk/stream/cache2.c

reimar subversion at mplayerhq.hu
Sat Jan 23 12:03:10 CET 2010


Author: reimar
Date: Sat Jan 23 12:03:10 2010
New Revision: 30397

Log:
Add an exit() to silence a gcc warning and ensure forked code will never
leave the cache-loop function.

Modified:
   trunk/stream/cache2.c

Modified: trunk/stream/cache2.c
==============================================================================
--- trunk/stream/cache2.c	Sat Jan 23 12:00:13 2010	(r30396)
+++ trunk/stream/cache2.c	Sat Jan 23 12:03:10 2010	(r30397)
@@ -406,6 +406,8 @@ static void ThreadProc( void *s ){
 #ifdef PTHREAD_CACHE
   return NULL;
 #endif
+  // make sure forked code never leaves this function
+  exit(0);
 }
 
 int cache_stream_fill_buffer(stream_t *s){


More information about the MPlayer-cvslog mailing list