mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
tests: rtpjitterbuffer: fix leaks in unit test
https://bugzilla.gnome.org/show_bug.cgi?id=762214
This commit is contained in:
parent
27816bb200
commit
fb4c2909ca
1 changed files with 5 additions and 2 deletions
|
@ -1609,6 +1609,8 @@ GST_START_TEST (test_deadline_ts_offset)
|
||||||
jb_latency_ms * GST_MSECOND);
|
jb_latency_ms * GST_MSECOND);
|
||||||
test_id = gst_test_clock_process_next_clock_id (GST_TEST_CLOCK (data.clock));
|
test_id = gst_test_clock_process_next_clock_id (GST_TEST_CLOCK (data.clock));
|
||||||
g_assert (test_id == id);
|
g_assert (test_id == id);
|
||||||
|
gst_clock_id_unref (id);
|
||||||
|
gst_clock_id_unref (test_id);
|
||||||
|
|
||||||
/* wait_next_timeout() syncs on the new deadline timer */
|
/* wait_next_timeout() syncs on the new deadline timer */
|
||||||
gst_test_clock_wait_for_next_pending_id (GST_TEST_CLOCK (data.clock), &id);
|
gst_test_clock_wait_for_next_pending_id (GST_TEST_CLOCK (data.clock), &id);
|
||||||
|
@ -1620,11 +1622,12 @@ GST_START_TEST (test_deadline_ts_offset)
|
||||||
(20 + jb_latency_ms) * GST_MSECOND);
|
(20 + jb_latency_ms) * GST_MSECOND);
|
||||||
test_id = gst_test_clock_process_next_clock_id (GST_TEST_CLOCK (data.clock));
|
test_id = gst_test_clock_process_next_clock_id (GST_TEST_CLOCK (data.clock));
|
||||||
g_assert (test_id == id);
|
g_assert (test_id == id);
|
||||||
|
|
||||||
gst_clock_id_unref (test_id);
|
|
||||||
gst_clock_id_unref (id);
|
gst_clock_id_unref (id);
|
||||||
|
gst_clock_id_unref (test_id);
|
||||||
|
|
||||||
out_buf = g_async_queue_pop (data.buf_queue);
|
out_buf = g_async_queue_pop (data.buf_queue);
|
||||||
g_assert (out_buf != NULL);
|
g_assert (out_buf != NULL);
|
||||||
|
gst_buffer_unref (out_buf);
|
||||||
|
|
||||||
destroy_testharness (&data);
|
destroy_testharness (&data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue