mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
surface: fix VA image leak when an error occurred.
This commit is contained in:
parent
c997607c6f
commit
010f94b85d
1 changed files with 1 additions and 0 deletions
|
@ -853,6 +853,7 @@ gst_vaapi_surface_update_composition(
|
|||
|
||||
if (!gst_vaapi_image_update_from_buffer (subtitle_image, buf, &sub_rect)) {
|
||||
GST_WARNING ("could not update VA image with subtitle data");
|
||||
g_object_unref (subtitle_image);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue