summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2011-12-12 18:37:13 +0100
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2011-12-12 18:37:13 +0100
commit010f94b85d79e95dfc867e1a617eedf5650928d7 (patch)
treebb1249f6ffdeb7568d200791b2242658a2db2a59
parentc997607c6f34143af86d7a7a240a02aff3a60255 (diff)
surface: fix VA image leak when an error occurred.
-rw-r--r--gst-libs/gst/vaapi/gstvaapisurface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapisurface.c b/gst-libs/gst/vaapi/gstvaapisurface.c
index f7e4b8c5..54bc432e 100644
--- a/gst-libs/gst/vaapi/gstvaapisurface.c
+++ b/gst-libs/gst/vaapi/gstvaapisurface.c
@@ -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;
}