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);