From 7ecf9a6d0489a6bd5b9e6df2048cdb54bb70d861 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 15 Nov 2008 19:43:39 +0000 Subject: 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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27930 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/cache2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/cache2.c b/stream/cache2.c index 30766ffc6d..f84d221e13 100644 --- a/stream/cache2.c +++ b/stream/cache2.c @@ -349,7 +349,11 @@ int stream_enable_cache(stream_t *stream,int size,int min,int seek_limit){ #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 % -- cgit v1.2.3