[FFmpeg-cvslog] lavc, lavfi: use avutil/thread.h instead of redundant conditional includes

Clément Bœsch git at videolan.org
Wed Jan 20 21:37:03 CET 2016


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Wed Jan 20 21:36:10 2016 +0100| [a36201564163a267644f1b5bc58fca0e3c25a9fa] | committer: Clément Bœsch

lavc,lavfi: use avutil/thread.h instead of redundant conditional includes

This was somehow forgotten in a8bb81a05c519dd3f36cc341e5fb448f6d17fa73.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a36201564163a267644f1b5bc58fca0e3c25a9fa
---

 libavcodec/pthread_slice.c |    9 +--------
 libavfilter/pthread.c      |    9 +--------
 2 files changed, 2 insertions(+), 16 deletions(-)

diff --git a/libavcodec/pthread_slice.c b/libavcodec/pthread_slice.c
index b2a15c6..3ba5c66 100644
--- a/libavcodec/pthread_slice.c
+++ b/libavcodec/pthread_slice.c
@@ -24,14 +24,6 @@
 
 #include "config.h"
 
-#if HAVE_PTHREADS
-#include <pthread.h>
-#elif HAVE_W32THREADS
-#include "compat/w32pthreads.h"
-#elif HAVE_OS2THREADS
-#include "compat/os2threads.h"
-#endif
-
 #include "avcodec.h"
 #include "internal.h"
 #include "pthread_internal.h"
@@ -41,6 +33,7 @@
 #include "libavutil/common.h"
 #include "libavutil/cpu.h"
 #include "libavutil/mem.h"
+#include "libavutil/thread.h"
 
 typedef int (action_func)(AVCodecContext *c, void *arg);
 typedef int (action_func2)(AVCodecContext *c, void *arg, int jobnr, int threadnr);
diff --git a/libavfilter/pthread.c b/libavfilter/pthread.c
index 070b3bd..1c54193 100644
--- a/libavfilter/pthread.c
+++ b/libavfilter/pthread.c
@@ -27,19 +27,12 @@
 #include "libavutil/common.h"
 #include "libavutil/cpu.h"
 #include "libavutil/mem.h"
+#include "libavutil/thread.h"
 
 #include "avfilter.h"
 #include "internal.h"
 #include "thread.h"
 
-#if HAVE_PTHREADS
-#include <pthread.h>
-#elif HAVE_OS2THREADS
-#include "compat/os2threads.h"
-#elif HAVE_W32THREADS
-#include "compat/w32pthreads.h"
-#endif
-
 typedef struct ThreadContext {
     AVFilterGraph *graph;
 



More information about the ffmpeg-cvslog mailing list