diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-07-11 11:29:42 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-07-11 11:29:42 +0200 |
commit | ca1104c0586c070c9635a33724f5a1c743533ba8 (patch) | |
tree | 7ffc6ca9bc4c522cb682648bd9e836149bb55254 /tests/check/elements/rtpsession.c | |
parent | 3985fe5e7372bf83c1cbb3259228700296c88899 (diff) |
Imported Upstream version 1.3.91
Diffstat (limited to 'tests/check/elements/rtpsession.c')
-rw-r--r-- | tests/check/elements/rtpsession.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/check/elements/rtpsession.c b/tests/check/elements/rtpsession.c index 41408902..7c7b5688 100644 --- a/tests/check/elements/rtpsession.c +++ b/tests/check/elements/rtpsession.c @@ -408,6 +408,7 @@ static void crank_rtcp_thread (TestData * data, GstClockTime * time, GstClockID * id) { gint queue_length; + GstClockID *tid; queue_length = g_async_queue_length (data->rtcp_queue); do { @@ -415,8 +416,12 @@ crank_rtcp_thread (TestData * data, GstClockTime * time, GstClockID * id) GST_DEBUG ("Advancing time to %" GST_TIME_FORMAT, GST_TIME_ARGS (*time)); if (*time > gst_clock_get_time (data->clock)) gst_test_clock_set_time (GST_TEST_CLOCK (data->clock), *time); - fail_unless_equals_pointer (gst_test_clock_process_next_clock_id - (GST_TEST_CLOCK (data->clock)), *id); + tid = gst_test_clock_process_next_clock_id (GST_TEST_CLOCK (data->clock)); + fail_unless_equals_pointer (tid, *id); + + gst_clock_id_unref (tid); + gst_clock_id_unref (*id); + *id = NULL; /* wait for the RTCP pad thread to output its data * and start waiting on the next timeout */ @@ -552,6 +557,7 @@ GST_START_TEST (test_internal_sources_timeout) gst_buffer_unref (buf); } g_assert_cmpint (j, ==, 0x3); /* verify we got both BYE and RR */ + gst_clock_id_unref (id); g_object_unref (internal_session); destroy_testharness (&data); |