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.
This commit is contained in:
Gwenole Beauchesne 2014-07-28 18:31:09 +02:00
parent 0607898019
commit b8601cf4c5

View file

@ -214,8 +214,7 @@ gst_vaapisink_video_overlay_expose(GstVideoOverlay *overlay)
GstVaapiSink * const sink = GST_VAAPISINK(overlay); GstVaapiSink * const sink = GST_VAAPISINK(overlay);
if (sink->video_buffer) if (sink->video_buffer)
gst_vaapisink_show_frame(GST_BASE_SINK_CAST(sink), gst_vaapisink_show_frame(GST_BASE_SINK_CAST(sink), sink->video_buffer);
gst_buffer_ref(sink->video_buffer));
} }
static void static void