diff options
Diffstat (limited to 'src/video_out')
-rw-r--r-- | src/video_out/Makefile.am | 2 | ||||
-rwxr-xr-x | src/video_out/video_out_directx.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/video_out/Makefile.am b/src/video_out/Makefile.am index 5b07ad1b3..4246068c0 100644 --- a/src/video_out/Makefile.am +++ b/src/video_out/Makefile.am @@ -162,7 +162,7 @@ xineplug_vo_out_stk_la_LDFLAGS = -avoid-version -module @XINE_PLUGIN_MIN_SYMS@ xineplug_vo_out_directx_la_SOURCES = alphablend.c yuv2rgb.c yuv2rgb_mmx.c video_out_directx.c xineplug_vo_out_directx_la_CPPFLAGS = $(DIRECTX_CPPFLAGS) -xineplug_vo_out_directx_la_LIBADD = $(DIRECTX_VIDEO_LIBS) $(XINE_LIB) +xineplug_vo_out_directx_la_LIBADD = $(DIRECTX_VIDEO_LIBS) $(XINE_LIB) $(THREAD_LIBS) xineplug_vo_out_directx_la_LDFLAGS = -avoid-version -module @XINE_PLUGIN_MIN_SYMS@ xineplug_vo_out_none_la_SOURCES = video_out_none.c diff --git a/src/video_out/video_out_directx.c b/src/video_out/video_out_directx.c index 5827ad27c..946e3f3e4 100755 --- a/src/video_out/video_out_directx.c +++ b/src/video_out/video_out_directx.c @@ -20,7 +20,7 @@ * video_out_directx.c, direct draw video output plugin for xine * by Matthew Grooms <elon@altavista.com> * - * $Id: video_out_directx.c,v 1.22 2005/08/25 15:36:30 valtri Exp $ + * $Id: video_out_directx.c,v 1.23 2005/08/29 15:28:16 valtri Exp $ */ typedef unsigned char boolean; @@ -28,6 +28,8 @@ typedef unsigned char boolean; #include <windows.h> #include <ddraw.h> +#include <pthread.h> + #include "xine.h" #include "video_out.h" #include "alphablend.h" @@ -866,6 +868,8 @@ static vo_frame_t * win32_alloc_frame( vo_driver_t * vo_driver ) if (!win32_frame) return NULL; + pthread_mutex_init(&win32_frame->vo_frame.mutex, NULL); + win32_frame->vo_frame.proc_slice = NULL; win32_frame->vo_frame.proc_frame = NULL; win32_frame->vo_frame.field = win32_frame_field; |