From: Gwenole Beauchesne Date: Mon, 28 Jul 2014 16:31:09 +0000 (+0200) Subject: vaapisink: fix GstVideoOverlay::expose() implementation. X-Git-Tag: 0.5.9~4 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fgstreamer-vaapi.git;a=commitdiff_plain;h=b8601cf4c5cf87f178628207e4cee194d6e6ba02 vaapisink: fix GstVideoOverlay::expose() implementation. 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. --- diff --git a/gst/vaapi/gstvaapisink.c b/gst/vaapi/gstvaapisink.c index 76d8f47..3753d77 100644 --- a/gst/vaapi/gstvaapisink.c +++ b/gst/vaapi/gstvaapisink.c @@ -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