[vlc-commits] d3d11va: it's safe to load/unload d3d11.dll even in direct rendering
Steve Lhomme
git at videolan.org
Thu Jun 22 17:26:55 CEST 2017
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Mon Jun 19 10:30:20 2017 +0200| [abe40414dd1ae9a33a980e9250d83b8925d956dc] | committer: Jean-Baptiste Kempf
d3d11va: it's safe to load/unload d3d11.dll even in direct rendering
LoadLibrary/FreeLibrary keeps track of how many times it's opened.
It's also safer in case the vout dies before the decoder.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=abe40414dd1ae9a33a980e9250d83b8925d956dc
---
modules/codec/avcodec/d3d11va.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 923266c741..38bfb9bb86 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -416,7 +416,7 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
#if VLC_WINSTORE_APP
err = directx_va_Open(va, &sys->dx_sys, false);
#else
- err = directx_va_Open(va, &sys->dx_sys, dx_sys->d3ddev == NULL || va->sys->d3dctx == NULL);
+ err = directx_va_Open(va, &sys->dx_sys, true);
#endif
if (err!=VLC_SUCCESS)
goto error;
More information about the vlc-commits
mailing list