videomixer2: Fix a leak
Buffers weren't being unref'ed in one case inside, causing memory usage to blow up.
This commit is contained in:
parent
98075ad70d
commit
cc7aeb3f33
@ -770,6 +770,7 @@ gst_videomixer2_fill_queues (GstVideoMixer2 * mix,
|
|||||||
} else if (start_time >= output_end_time) {
|
} else if (start_time >= output_end_time) {
|
||||||
GST_DEBUG_OBJECT (pad, "Keeping buffer until %" GST_TIME_FORMAT,
|
GST_DEBUG_OBJECT (pad, "Keeping buffer until %" GST_TIME_FORMAT,
|
||||||
GST_TIME_ARGS (start_time));
|
GST_TIME_ARGS (start_time));
|
||||||
|
gst_buffer_unref (buf);
|
||||||
eos = FALSE;
|
eos = FALSE;
|
||||||
} else {
|
} else {
|
||||||
GST_DEBUG_OBJECT (pad, "Too old buffer -- dropping");
|
GST_DEBUG_OBJECT (pad, "Too old buffer -- dropping");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user