Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
f808bdd6 by Pierre Lamot at 2023-03-22T14:32:07+00:00
interop_dxva2: fix flickering effect

- - - - -


1 changed file:

- modules/video_output/opengl/interop_dxva2.c


Changes:

=====================================
modules/video_output/opengl/interop_dxva2.c
=====================================
@@ -133,6 +133,13 @@ GLConvUpdate(const struct vlc_gl_interop *interop, 
uint32_t textures[],
                     (const char*)&dstDesc.Format, dstDesc.Format, hr);
             return VLC_EGENERIC;
         }
+
+        hr = IDirect3DDevice9Ex_PresentEx(d3d9_decoder->d3ddev.devex, NULL, 
NULL, NULL, NULL, D3DPRESENT_INTERVAL_IMMEDIATE);
+        if (FAILED(hr))
+        {
+            msg_Warn(interop->gl, "IDirect3DDevice9_Present failed. (0x%lX)", 
hr);
+            return VLC_EGENERIC;
+        }
     }
     else
     {



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/f808bdd6b854d20861d2a4e05e7493046311965d

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/f808bdd6b854d20861d2a4e05e7493046311965d
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to