mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
tests: rtpaux: use alawenc/dec in these tests instead of Speex
They should always be built, while the speex elements are not. https://bugzilla.gnome.org/show_bug.cgi?id=742098
This commit is contained in:
parent
67d4b85d6a
commit
d416336a6e
1 changed files with 5 additions and 5 deletions
|
@ -218,8 +218,8 @@ GST_START_TEST (test_simple_rtpbin_aux)
|
||||||
rtpbinsend = gst_element_factory_make ("rtpbin", "rtpbinsend");
|
rtpbinsend = gst_element_factory_make ("rtpbin", "rtpbinsend");
|
||||||
g_object_set (rtpbinsend, "latency", 200, "do-retransmission", TRUE, NULL);
|
g_object_set (rtpbinsend, "latency", 200, "do-retransmission", TRUE, NULL);
|
||||||
src = gst_element_factory_make ("audiotestsrc", "src");
|
src = gst_element_factory_make ("audiotestsrc", "src");
|
||||||
encoder = gst_element_factory_make ("speexenc", "encoder");
|
encoder = gst_element_factory_make ("alawenc", "encoder");
|
||||||
rtppayloader = gst_element_factory_make ("rtpspeexpay", "rtppayloader");
|
rtppayloader = gst_element_factory_make ("rtppcmapay", "rtppayloader");
|
||||||
rtprtxsend = gst_element_factory_make ("rtprtxsend", "rtprtxsend");
|
rtprtxsend = gst_element_factory_make ("rtprtxsend", "rtprtxsend");
|
||||||
sendrtp_udpsink = gst_element_factory_make ("udpsink", "sendrtp_udpsink");
|
sendrtp_udpsink = gst_element_factory_make ("udpsink", "sendrtp_udpsink");
|
||||||
g_object_set (sendrtp_udpsink, "host", "127.0.0.1", NULL);
|
g_object_set (sendrtp_udpsink, "host", "127.0.0.1", NULL);
|
||||||
|
@ -238,7 +238,7 @@ GST_START_TEST (test_simple_rtpbin_aux)
|
||||||
g_object_set (recvrtp_udpsrc, "port", 5006, NULL);
|
g_object_set (recvrtp_udpsrc, "port", 5006, NULL);
|
||||||
rtpcaps =
|
rtpcaps =
|
||||||
gst_caps_from_string
|
gst_caps_from_string
|
||||||
("application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)SPEEX,encoding-params=(string)1,octet-align=(string)1");
|
("application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)PCMA,payload=(int)8");
|
||||||
g_object_set (recvrtp_udpsrc, "caps", rtpcaps, NULL);
|
g_object_set (recvrtp_udpsrc, "caps", rtpcaps, NULL);
|
||||||
gst_caps_unref (rtpcaps);
|
gst_caps_unref (rtpcaps);
|
||||||
recvrtcp_udpsrc = gst_element_factory_make ("udpsrc", "recvrtcp_udpsrc");
|
recvrtcp_udpsrc = gst_element_factory_make ("udpsrc", "recvrtcp_udpsrc");
|
||||||
|
@ -249,8 +249,8 @@ GST_START_TEST (test_simple_rtpbin_aux)
|
||||||
g_object_set (recvrtcp_udpsink, "sync", FALSE, NULL);
|
g_object_set (recvrtcp_udpsink, "sync", FALSE, NULL);
|
||||||
g_object_set (recvrtcp_udpsink, "async", FALSE, NULL);
|
g_object_set (recvrtcp_udpsink, "async", FALSE, NULL);
|
||||||
rtprtxreceive = gst_element_factory_make ("rtprtxreceive", "rtprtxreceive");
|
rtprtxreceive = gst_element_factory_make ("rtprtxreceive", "rtprtxreceive");
|
||||||
rtpdepayloader = gst_element_factory_make ("rtpspeexdepay", "rtpdepayloader");
|
rtpdepayloader = gst_element_factory_make ("rtppcmadepay", "rtpdepayloader");
|
||||||
decoder = gst_element_factory_make ("speexdec", "decoder");
|
decoder = gst_element_factory_make ("alawdec", "decoder");
|
||||||
converter = gst_element_factory_make ("identity", "converter");
|
converter = gst_element_factory_make ("identity", "converter");
|
||||||
sink = gst_element_factory_make ("fakesink", "sink");
|
sink = gst_element_factory_make ("fakesink", "sink");
|
||||||
g_object_set (sink, "sync", TRUE, NULL);
|
g_object_set (sink, "sync", TRUE, NULL);
|
||||||
|
|
Loading…
Reference in a new issue