[vlc-commits] commit: Fixed broken video with direct3d for some drivers. (Laurent Aimar )

git at videolan.org git at videolan.org
Mon Jul 26 21:43:41 CEST 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Jul 26 21:34:22 2010 +0200| [c05fa12539d7423fc0f833118c816eab72212df6] | committer: Laurent Aimar 

Fixed broken video with direct3d for some drivers.

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

 modules/video_output/msw/direct3d.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/msw/direct3d.c b/modules/video_output/msw/direct3d.c
index 5510e69..4fd89e0 100644
--- a/modules/video_output/msw/direct3d.c
+++ b/modules/video_output/msw/direct3d.c
@@ -255,8 +255,6 @@ static void Prepare(vout_display_t *vd, picture_t *picture)
     Direct3DUnlockSurface(picture);
 
     Direct3DRenderScene(vd, surface);
-
-    Direct3DLockSurface(picture);
 #endif
 }
 
@@ -273,10 +271,12 @@ static void Display(vout_display_t *vd, picture_t *picture)
     if (FAILED(hr)) {
         msg_Dbg(vd, "%s:%d (hr=0x%0lX)", __FUNCTION__, __LINE__, hr);
     }
+
 #if 0
     VLC_UNUSED(picture);
 #else
     /* XXX See Prepare() */
+    Direct3DLockSurface(picture);
     picture_Release(picture);
 #endif
 



More information about the vlc-commits mailing list