[vlc-commits] direct3d11: protect the flush from concurrent access from the decoder thread(s)

Steve Lhomme git at videolan.org
Thu Aug 2 13:08:11 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Aug  2 12:37:20 2018 +0200| [83d8394d9b24253e786bc21576155b7a586c1b16] | committer: Steve Lhomme

direct3d11: protect the flush from concurrent access from the decoder thread(s)

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

 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 b18c84c6c7..4edd954eb2 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -929,10 +929,10 @@ static void Prepare(vout_display_t *vd, picture_t *picture,
         }
     }
 
+    ID3D11DeviceContext_Flush(sys->d3d_dev.d3dcontext);
+
     if (is_d3d11_opaque(picture->format.i_chroma))
         d3d11_device_unlock( &sys->d3d_dev );
-
-    ID3D11DeviceContext_Flush(sys->d3d_dev.d3dcontext);
 }
 
 static void Display(vout_display_t *vd, picture_t *picture, subpicture_t *subpicture)



More information about the vlc-commits mailing list