vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Mon Feb 12 14:55:35 
2018 +0100| [b80ed34d2909ef9f8e242bdb9ce757edcf316d44] | committer: Steve Lhomme

direct3d11: protect the context that might be used in UpdatePicQuadPosition()

It can only happen in 360 videos.

Unlikely to fix 715107d9-c5e4-4ca7-8493-4570f7eaa154

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

 modules/video_output/win32/direct3d11.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c 
b/modules/video_output/win32/direct3d11.c
index 6650708214..48e261cc07 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -948,8 +948,6 @@ static void UpdateSize(vout_display_t *vd)
 
     UpdateBackBuffer(vd);
 
-    UpdatePicQuadPosition(vd);
-
 #if defined(HAVE_ID3D11VIDEODECODER)
     if( sys->context_lock != INVALID_HANDLE_VALUE )
     {
@@ -957,6 +955,8 @@ static void UpdateSize(vout_display_t *vd)
     }
 #endif
 
+    UpdatePicQuadPosition(vd);
+
     UpdateQuadPosition(vd, &sys->picQuad, &sys->sys.rect_src_clipped,
                        vd->fmt.projection_mode, vd->fmt.orientation);
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to