Browse code

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

This was somehow forgotten in a8bb81a05c519dd3f36cc341e5fb448f6d17fa73.

Clément Bœsch authored on 2016/01/21 05:36:10
Showing 2 changed files
... ...
@@ -24,14 +24,6 @@
24 24
 
25 25
 #include "config.h"
26 26
 
27
-#if HAVE_PTHREADS
28
-#include <pthread.h>
29
-#elif HAVE_W32THREADS
30
-#include "compat/w32pthreads.h"
31
-#elif HAVE_OS2THREADS
32
-#include "compat/os2threads.h"
33
-#endif
34
-
35 27
 #include "avcodec.h"
36 28
 #include "internal.h"
37 29
 #include "pthread_internal.h"
... ...
@@ -41,6 +33,7 @@
41 41
 #include "libavutil/common.h"
42 42
 #include "libavutil/cpu.h"
43 43
 #include "libavutil/mem.h"
44
+#include "libavutil/thread.h"
44 45
 
45 46
 typedef int (action_func)(AVCodecContext *c, void *arg);
46 47
 typedef int (action_func2)(AVCodecContext *c, void *arg, int jobnr, int threadnr);
... ...
@@ -27,19 +27,12 @@
27 27
 #include "libavutil/common.h"
28 28
 #include "libavutil/cpu.h"
29 29
 #include "libavutil/mem.h"
30
+#include "libavutil/thread.h"
30 31
 
31 32
 #include "avfilter.h"
32 33
 #include "internal.h"
33 34
 #include "thread.h"
34 35
 
35
-#if HAVE_PTHREADS
36
-#include <pthread.h>
37
-#elif HAVE_OS2THREADS
38
-#include "compat/os2threads.h"
39
-#elif HAVE_W32THREADS
40
-#include "compat/w32pthreads.h"
41
-#endif
42
-
43 36
 typedef struct ThreadContext {
44 37
     AVFilterGraph *graph;
45 38