[Bug 786740] appsink: should not keep a ref on the preroll buffer all the time

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Sep 14 12:21:16 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=786740

--- Comment #21 from Julien Isorce <julien.isorce at gmail.com> ---
Make sense, so something like:

--- a/gst-libs/gst/app/gstappsink.c
+++ b/gst-libs/gst/app/gstappsink.c
@@ -1568,6 +1568,7 @@ gst_app_sink_try_pull_sample (GstAppSink * appsink,
GstClockTime timeout)
   priv = appsink->priv;

   g_mutex_lock (&priv->mutex);
+  gst_buffer_replace (&priv->preroll_buffer, NULL);

?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list