From 8a143dfcbcc4cc63c88bec141692d5d852f8f9a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Thu, 12 Dec 2013 23:05:43 -0500 Subject: [PATCH] tests: Remove usage of the system clock from the rtprtx test --- tests/check/elements/rtprtx.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tests/check/elements/rtprtx.c b/tests/check/elements/rtprtx.c index f18f0b4a4f..cd313c4fcd 100644 --- a/tests/check/elements/rtprtx.c +++ b/tests/check/elements/rtprtx.c @@ -21,7 +21,6 @@ #include #include -#include #include @@ -58,7 +57,6 @@ static void setup_rtprtx (GstElement * rtprtxsend, GstElement * rtprtxreceive, gint num_buffers) { - GstClock *clock; GstBuffer *buffer; GstPad *sendsrcpad; GstPad *receivesinkpad; @@ -78,11 +76,6 @@ setup_rtprtx (GstElement * rtprtxsend, GstElement * rtprtxreceive, GstClockTime tso = gst_util_uint64_scale (RTP_FRAME_SIZE, GST_SECOND, 8000); gint i; - /* we need a clock here */ - clock = gst_system_clock_obtain (); - gst_element_set_clock (rtprtxsend, clock); - gst_object_unref (clock); - srcpad = gst_check_setup_src_pad (rtprtxsend, &srctemplate); sendsrcpad = gst_element_get_static_pad (rtprtxsend, "src"); ret = gst_pad_set_active (srcpad, TRUE); @@ -128,15 +121,6 @@ static GstStateChangeReturn start_rtprtx (GstElement * element) { GstStateChangeReturn ret; - GstClockTime now; - GstClock *clock; - - clock = gst_element_get_clock (element); - if (clock) { - now = gst_clock_get_time (clock); - gst_object_unref (clock); - gst_element_set_base_time (element, now); - } ret = gst_element_set_state (element, GST_STATE_PLAYING); ck_assert_int_ne (ret, GST_STATE_CHANGE_FAILURE);