mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
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 :)
This commit is contained in:
parent
d25a183ccc
commit
ceb602073a
1 changed files with 3 additions and 2 deletions
|
@ -243,7 +243,8 @@ GST_START_TEST (test_simple_rtpbin_aux)
|
||||||
rtpdepayloader = gst_element_factory_make ("rtpspeexdepay", "rtpdepayloader");
|
rtpdepayloader = gst_element_factory_make ("rtpspeexdepay", "rtpdepayloader");
|
||||||
decoder = gst_element_factory_make ("speexdec", "decoder");
|
decoder = gst_element_factory_make ("speexdec", "decoder");
|
||||||
converter = gst_element_factory_make ("identity", "converter");
|
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,
|
gst_bin_add_many (GST_BIN (binsend), rtpbinsend, src, encoder, rtppayloader,
|
||||||
sendrtp_udpsink, sendrtcp_udpsink, sendrtcp_udpsrc, NULL);
|
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, \
|
/* 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
|
* 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 ! \
|
* 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
|
* rtpbin.send_rtcp_src_1 ! udpsink host="127.0.0.1" port=5007 sync=false async=false
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue