summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2015-11-13 18:41:34 (GMT)
committerEmanuele Aina <emanuele.aina@collabora.com>2015-11-14 23:24:45 (GMT)
commita91f79a16aea112f0ef4bd297e18c5c95f167391 (patch)
tree094e9039ba7323d303093d32ca0a0d8314fd7eb7
parent73ec854ac51f9a5bb4e7a0aca762223d6a433502 (diff)
downloadWebKit-a91f79a16aea112f0ef4bd297e18c5c95f167391.tar.gz
WebKit-a91f79a16aea112f0ef4bd297e18c5c95f167391.tar.xz
[GStreamer] Do not forget to reset sink->priv->buffer when dropping buffers
Differential Revision: https://phabricator.collabora.co.uk/D337
-rw-r--r--Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp
index 2b79bf6..512a630 100644
--- a/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp
+++ b/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp
@@ -260,7 +260,7 @@ static GstFlowReturn webkitVideoSinkShowFrame(GstVideoSink* videoSink, GstBuffer
if (priv->outputFrameCount > targetFrameCount) {
GST_INFO_OBJECT (sink, "Dropping frame to display on %f/1 frame", s_maxFramerateForHighDefVideos);
- gst_buffer_unref(buffer);
+ gst_buffer_replace (&priv->buffer , NULL);
return GST_FLOW_OK;
}
priv->outputFrameCount++;