From b8601cf4c5cf87f178628207e4cee194d6e6ba02 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Mon, 28 Jul 2014 18:31:09 +0200 Subject: [PATCH] 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. --- gst/vaapi/gstvaapisink.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.7.4