VAAPI-X11: call cache_SubpictureRelease() only when there is a subpicture.
If creating a subpicture fails, then the picture is not going to carry a reference to the cached subpicture structure. In this case the cached subpicture was being freed anyway. Which resulted in a crash. Instead check if there is an subpicture cache id and if it is > 0, before attempting to release it.
Showing
Please register or sign in to comment