summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorFrançois Revol <revol@free.fr>2004-11-21 18:04:56 +0000
committerFrançois Revol <revol@free.fr>2004-11-21 18:04:56 +0000
commit2450cff2c3317b589575fc99dce26ddc605883ee (patch)
tree0b049eeea1ed936883e21889abaf8792930b5fa4 /ffplay.c
parent7a57b90c335c4c3e64ba6cdacfb9869773adb8b0 (diff)
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffplay.c b/ffplay.c
index c8d91997f3..13fbd989a7 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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
}