Commit 2c9de5eb authored by Steve Lhomme's avatar Steve Lhomme

dxva2: only call Close when va->sys is set

parent 03c4b4f7
......@@ -232,8 +232,6 @@ static int Get(vlc_va_t *va, picture_t *pic, uint8_t **data)
static void Close(vlc_va_t *va)
vlc_va_sys_t *sys = va->sys;
if ( sys == NULL )
directx_va_Close(va, &sys->dx_sys);
......@@ -292,7 +290,7 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
msg_Warn(va, "cannot load DXVA2 decoder DLL");
D3D9_Destroy( &sys->hd3d );
free( sys );
goto error;
dx_sys = &sys->dx_sys;
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