vlc/vlc-3.0 | branch: master | Steve Lhomme <[email protected]> | Mon Feb 19 
12:37:04 2018 +0100| [aa34285ab61f6862f61b35995b3d26fc46b03a5b] | committer: 
Hugo Beauzée-Luyssen

direct3d11: only lock the picture if it's plane based

(cherry picked from commit 3c68fead20d1680aac5dc557250c3ff2b7fa298d)
Signed-off-by: Hugo Beauzée-Luyssen <[email protected]>

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

 modules/video_output/win32/direct3d11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/win32/direct3d11.c 
b/modules/video_output/win32/direct3d11.c
index c8d1092507..f9b90e4c91 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -661,7 +661,7 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned 
pool_size)
             .picture       = pictures,
             .picture_count = pool_size,
         };
-        if (vd->info.is_slow) {
+        if (vd->info.is_slow && !is_d3d11_opaque(surface_fmt.i_chroma)) {
             pool_cfg.lock          = Direct3D11MapPoolTexture;
             //pool_cfg.unlock        = Direct3D11UnmapPoolTexture;
         }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to