diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-11-15 19:43:39 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-11-15 19:43:39 +0000 |
commit | 7ecf9a6d0489a6bd5b9e6df2048cdb54bb70d861 (patch) | |
tree | 1498967d17a2b27f5f78e1daad372ddd879ab1b5 /stream | |
parent | 39e42b26e9ade6374654f2c82a00ac2f66a81469 (diff) |
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
Diffstat (limited to 'stream')
-rw-r--r-- | stream/cache2.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 % |