surface: fix VA image leak when an error occurred.

This commit is contained in:
Gwenole Beauchesne 2011-12-12 18:37:13 +01:00
parent c997607c6f
commit 010f94b85d

View file

@ -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;
}