Commit 081da674 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

tests: rtpjitterbuffer: fix leaks in new test_push_eos() test

parent 55d43dbb
Pipeline #22652 passed with stages
in 47 minutes and 8 seconds
......@@ -311,7 +311,7 @@ eos_event_function (GstPad * pad, GstObject * parent, GstEvent * event)
g_cond_signal (&check_cond);
g_mutex_unlock (&check_mutex);
}
gst_event_unref (event);
return TRUE;
}
......@@ -319,7 +319,6 @@ GST_START_TEST (test_push_eos)
{
GstElement *jitterbuffer;
const guint num_buffers = 5;
GstBuffer *buffer;
GList *node;
GstStructure *stats;
guint64 pushed, lost, late, duplicates;
......@@ -337,12 +336,18 @@ GST_START_TEST (test_push_eos)
/* push buffers: 0,1,2, */
for (node = inbuffers; node; node = g_list_next (node)) {
GstBuffer *buffer;
/* steal buffer from list */
buffer = node->data;
node->data = NULL;
n++;
/* Skip 1 */
if (n == 2) {
gst_buffer_unref (buffer);
continue;
}
buffer = (GstBuffer *) node->data;
fail_unless (gst_pad_push (mysrcpad, buffer) == GST_FLOW_OK);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment