From 32fb502c79b5ed6670116c4de5a34279b813806e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 12 Sep 2009 12:01:52 -0700 Subject: [PATCH] Unref the buffer after pushing it, as it makes its own reference --- src/stream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stream.cpp b/src/stream.cpp index 707859b..d1d6a29 100644 --- a/src/stream.cpp +++ b/src/stream.cpp @@ -1254,6 +1254,7 @@ private: //GST_DEBUG("feed buffer %p, %u", buffer, GST_BUFFER_SIZE(buffer)); g_signal_emit_by_name(appsrc, "push-buffer", buffer, &ret); + gst_buffer_unref(buffer); } static gboolean seek_data(GstElement */*appsrc*/, guint64 position, gstStream *app) -- 2.11.4.GIT