From cc7aeb3f33e10914d491f0426032f5a307243f53 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Fri, 14 Oct 2011 10:56:16 +0530 Subject: [PATCH] videomixer2: Fix a leak Buffers weren't being unref'ed in one case inside, causing memory usage to blow up. --- gst/videomixer/videomixer2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/videomixer/videomixer2.c b/gst/videomixer/videomixer2.c index c6bddbe..22ae395 100644 --- a/gst/videomixer/videomixer2.c +++ b/gst/videomixer/videomixer2.c @@ -770,6 +770,7 @@ gst_videomixer2_fill_queues (GstVideoMixer2 * mix, } else if (start_time >= output_end_time) { GST_DEBUG_OBJECT (pad, "Keeping buffer until %" GST_TIME_FORMAT, GST_TIME_ARGS (start_time)); + gst_buffer_unref (buf); eos = FALSE; } else { GST_DEBUG_OBJECT (pad, "Too old buffer -- dropping"); -- 2.7.4