summaryrefslogtreecommitdiff
path: root/src/video_out/video_out_directx.c
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@users.sourceforge.net>2005-08-29 15:28:16 +0000
committerFrantišek Dvořák <valtri@users.sourceforge.net>2005-08-29 15:28:16 +0000
commit0f8fd3b22893dd07db6506a1ba4d298e51a1c985 (patch)
tree291cf3594687cdaaa23f9527ba6d9f20f1a6283d /src/video_out/video_out_directx.c
parent7cb89d83b0d845270e583c2848b0eaaa5e053217 (diff)
downloadxine-lib-0f8fd3b22893dd07db6506a1ba4d298e51a1c985.tar.gz
xine-lib-0f8fd3b22893dd07db6506a1ba4d298e51a1c985.tar.bz2
*BUGFIX*
Windows ports updates: - finished M$VC port update - moved xine plugins back to normal location for Windows ports, added relative directories (used relative to ${prefix}), make sure it's thread-safe (but it's still hacky) - fixed ugly bug with loading plugins, when working drive was differrent from plugins directory directory - directory and subdirectory separator called as platform specific - fix crash with newer win32 pthread (missing mutex_init in vo plugin), yes! - small doc update CVS patchset: 7712 CVS date: 2005/08/29 15:28:16
Diffstat (limited to 'src/video_out/video_out_directx.c')
-rwxr-xr-xsrc/video_out/video_out_directx.c6
1 files changed, 5 insertions, 1 deletions
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;