[MPlayer-cvslog] r27930 - trunk/stream/cache2.c
reimar
subversion at mplayerhq.hu
Sat Nov 15 20:43:39 CET 2008
Author: reimar
Date: Sat Nov 15 20:43:39 2008
New Revision: 27930
Log:
100l, stream->cache_pid can not be used directly in pthread_create,
it has the wrong type. Luckily we currently do not need the value anyway.
Modified:
trunk/stream/cache2.c
Modified: trunk/stream/cache2.c
==============================================================================
--- trunk/stream/cache2.c (original)
+++ trunk/stream/cache2.c Sat Nov 15 20:43:39 2008
@@ -349,7 +349,11 @@ int stream_enable_cache(stream_t *stream
#elif defined(__OS2__)
stream->cache_pid = _beginthread( ThreadProc, NULL, 256 * 1024, s );
#else
- pthread_create(&stream->cache_pid, NULL, ThreadProc, s);
+ {
+ pthread_t tid;
+ pthread_create(&tid, NULL, ThreadProc, s);
+ stream->cache_pid = 1;
+ }
#endif
#endif
// wait until cache is filled at least prefill_init %
More information about the MPlayer-cvslog
mailing list