Commit a1526880 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

d3d11va: fix deadlock on error

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent b9614965
......@@ -274,7 +274,8 @@ static int Extract(vlc_va_t *va, picture_t *output, uint8_t *data)
if (FAILED(hr))
{
msg_Err(va, "Failed to create the processor output. (hr=0x%lX)", hr);
return VLC_EGENERIC;
ret = VLC_EGENERIC;
goto done;
}
}
......@@ -289,7 +290,8 @@ static int Extract(vlc_va_t *va, picture_t *output, uint8_t *data)
if (FAILED(hr))
{
msg_Err(va, "Failed to process the video. (hr=0x%lX)", hr);
return VLC_EGENERIC;
ret = VLC_EGENERIC;
goto done;
}
}
else
......@@ -315,6 +317,8 @@ static int Extract(vlc_va_t *va, picture_t *output, uint8_t *data)
ret = VLC_EGENERIC;
}
done:
#if VLC_WINSTORE_APP && LIBAVCODEC_VERSION_CHECK(57, 2, 0, 3, 100)
if( sys->context_mutex > 0 ) {
ReleaseMutex( sys->context_mutex );
......
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