Commit abe40414 authored by Steve Lhomme's avatar Steve Lhomme Committed by 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's avatarJean-Baptiste Kempf <>
parent b655a1d7
......@@ -416,7 +416,7 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
err = directx_va_Open(va, &sys->dx_sys, false);
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);
if (err!=VLC_SUCCESS)
goto error;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment