From ceb602073a7762087d627ec1627c736d189ace92 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 29 Jan 2014 10:37:53 +0100 Subject: [PATCH] check: Use fakesink sync=True instead of an audio sink Ensures the test can run on systems without alsa (or any audio output for that matter), and will avoid people running build slaves wondering what the hell was beeping during the night :) --- tests/check/elements/rtpaux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/check/elements/rtpaux.c b/tests/check/elements/rtpaux.c index 8a658e8957..0fe5585a90 100644 --- a/tests/check/elements/rtpaux.c +++ b/tests/check/elements/rtpaux.c @@ -243,7 +243,8 @@ GST_START_TEST (test_simple_rtpbin_aux) rtpdepayloader = gst_element_factory_make ("rtpspeexdepay", "rtpdepayloader"); decoder = gst_element_factory_make ("speexdec", "decoder"); converter = gst_element_factory_make ("identity", "converter"); - sink = gst_element_factory_make ("alsasink", "sink"); + sink = gst_element_factory_make ("fakesink", "sink"); + g_object_set (sink, "sync", TRUE, NULL); gst_bin_add_many (GST_BIN (binsend), rtpbinsend, src, encoder, rtppayloader, sendrtp_udpsink, sendrtcp_udpsink, sendrtcp_udpsrc, NULL); @@ -306,7 +307,7 @@ GST_START_TEST (test_simple_rtpbin_aux) /* gst-launch-1.0 rtpbin name=rtpbin udpsrc caps="application/x-rtp,media=(string)audio, \ * clock-rate=(int)8000,encoding-name=(string)AMR,encoding-params=(string)1,o * ctet-align=(string)1" port=5002 ! rtpbin.recv_rtp_sink_1 rtpbin. ! rtpamrdepay ! \ - * amrnbdec ! alsasink udpsrc port=5003 ! rtpbin.recv_rtcp_sink_1 \ + * amrnbdec ! fakesink sync=True udpsrc port=5003 ! rtpbin.recv_rtcp_sink_1 \ * rtpbin.send_rtcp_src_1 ! udpsink host="127.0.0.1" port=5007 sync=false async=false */