vaapisink: fix GstVideoOverlay::expose() implementation.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 28 Jul 2014 16:31:09 +0000 (18:31 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 28 Jul 2014 16:34:13 +0000 (18:34 +0200)
Now that we always track the currently active video buffer, it is
not necessary to automatically increase its reference since this is
implicitly performed in ::show_frame() through the get_input_buffer()
helper from GstVaapiPluginBase class.

This is a regression from a26df80.

gst/vaapi/gstvaapisink.c

index 76d8f47..3753d77 100644 (file)
@@ -214,8 +214,7 @@ gst_vaapisink_video_overlay_expose(GstVideoOverlay *overlay)
     GstVaapiSink * const sink = GST_VAAPISINK(overlay);
 
     if (sink->video_buffer)
-        gst_vaapisink_show_frame(GST_BASE_SINK_CAST(sink),
-            gst_buffer_ref(sink->video_buffer));
+        gst_vaapisink_show_frame(GST_BASE_SINK_CAST(sink), sink->video_buffer);
 }
 
 static void