diff options
author | François Revol <revol@free.fr> | 2004-11-21 18:04:56 +0000 |
---|---|---|
committer | François Revol <revol@free.fr> | 2004-11-21 18:04:56 +0000 |
commit | 2450cff2c3317b589575fc99dce26ddc605883ee (patch) | |
tree | 0b049eeea1ed936883e21889abaf8792930b5fa4 /ffplay.c | |
parent | 7a57b90c335c4c3e64ba6cdacfb9869773adb8b0 (diff) | |
download | ffmpeg-2450cff2c3317b589575fc99dce26ddc605883ee.tar.gz |
BeOS threading support. changed some "if FOO_THREAD||BAR_THREAD" to a more generic "if HAVE_THREADS"
Originally committed as revision 3702 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1174,7 +1174,7 @@ static int stream_component_open(VideoState *is, int stream_index) if (!codec || avcodec_open(enc, codec) < 0) return -1; -#if defined(HAVE_PTHREADS) || defined(HAVE_W32THREADS) +#if defined(HAVE_THREADS) if(thread_count>1) avcodec_thread_init(enc, thread_count); #endif @@ -1809,7 +1809,7 @@ static void opt_vismv(const char *arg) static void opt_thread_count(const char *arg) { thread_count= atoi(arg); -#if !defined(HAVE_PTHREADS) && !defined(HAVE_W32THREADS) +#if !defined(HAVE_THREADS) fprintf(stderr, "Warning: not compiled with thread support, using thread emulation\n"); #endif } |