OSDN Git Service

w32pthreads: move from lavc to compat/
authorAnton Khirnov <anton@khirnov.net>
Sun, 12 May 2013 06:11:42 +0000 (08:11 +0200)
committerAnton Khirnov <anton@khirnov.net>
Fri, 24 May 2013 07:26:54 +0000 (09:26 +0200)
It will be used in other places than lavc.

Makefile
compat/w32pthreads.h [moved from libavcodec/w32pthreads.h with 98% similarity]
libavcodec/Makefile
libavcodec/pthread.c
libavcodec/vp8.h
libavformat/network.c

index 42ef8b0..783971f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -84,7 +84,7 @@ FFLIBS := avutil
 
 DATA_FILES := $(wildcard $(SRC_PATH)/presets/*.avpreset)
 
-SKIPHEADERS = cmdutils_common_opts.h
+SKIPHEADERS = cmdutils_common_opts.h compat/w32pthreads.h
 
 include $(SRC_PATH)/common.mak
 
similarity index 98%
rename from libavcodec/w32pthreads.h
rename to compat/w32pthreads.h
index c58da49..a5ff6ac 100644 (file)
@@ -26,8 +26,8 @@
  * w32threads to pthreads wrapper
  */
 
-#ifndef AVCODEC_W32PTHREADS_H
-#define AVCODEC_W32PTHREADS_H
+#ifndef LIBAV_W32PTHREADS_H
+#define LIBAV_W32PTHREADS_H
 
 /* Build up a pthread-like API using underlying Windows API. Have only static
  * methods so as to not conflict with a potentially linked in pthread-win32
@@ -276,4 +276,4 @@ static void w32thread_init(void)
 
 }
 
-#endif /* AVCODEC_W32PTHREADS_H */
+#endif /* LIBAV_W32PTHREADS_H */
index f94b772..acc2a93 100644 (file)
@@ -679,7 +679,6 @@ SKIPHEADERS-$(CONFIG_MPEG_XVMC_DECODER) += xvmc.h
 SKIPHEADERS-$(CONFIG_VAAPI)            += vaapi_internal.h
 SKIPHEADERS-$(CONFIG_VDA)              += vda.h
 SKIPHEADERS-$(CONFIG_VDPAU)            += vdpau.h
-SKIPHEADERS-$(HAVE_W32THREADS)         += w32pthreads.h
 
 EXAMPLES = api
 
index 9855b35..7eac335 100644 (file)
@@ -58,7 +58,7 @@
 #if HAVE_PTHREADS
 #include <pthread.h>
 #elif HAVE_W32THREADS
-#include "w32pthreads.h"
+#include "compat/w32pthreads.h"
 #endif
 
 typedef int (action_func)(AVCodecContext *c, void *arg);
index 8631c8f..6ec3879 100644 (file)
@@ -36,7 +36,7 @@
 #if HAVE_PTHREADS
 #include <pthread.h>
 #elif HAVE_W32THREADS
-#include "w32pthreads.h"
+#include "compat/w32pthreads.h"
 #endif
 
 #define VP8_MAX_QUANT 127
index 1f6bc10..f493c29 100644 (file)
@@ -26,7 +26,7 @@
 #if HAVE_PTHREADS
 #include <pthread.h>
 #else
-#include "libavcodec/w32pthreads.h"
+#include "compat/w32pthreads.h"
 #endif
 #endif