Commit 22b29535 authored by Gwenole Beauchesne's avatar Gwenole Beauchesne

vaapiconvert: use g_object_unref() for GstVaapiImage.

parent 20d46e8d
...@@ -657,7 +657,7 @@ gst_vaapiconvert_buffer_alloc( ...@@ -657,7 +657,7 @@ gst_vaapiconvert_buffer_alloc(
image = gst_vaapi_surface_derive_image(surface); image = gst_vaapi_surface_derive_image(surface);
if (image && gst_vaapi_image_get_data_size(image) == size) { if (image && gst_vaapi_image_get_data_size(image) == size) {
gst_vaapi_video_buffer_set_image(vbuffer, image); gst_vaapi_video_buffer_set_image(vbuffer, image);
gst_object_unref(image); /* video buffer owns an extra reference */ g_object_unref(image); /* video buffer owns an extra reference */
break; break;
} }
......
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