summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2014-12-30 17:19:42 +0000
committerTim-Philipp Müller <tim@centricular.com>2014-12-30 17:19:59 +0000
commitd67da4c8ae76320914016fd46acfef82298dba2c (patch)
treea3d2b442c2774d036c84c9e66e4e776b60e2d45d /tests
parentf1972b667e2cd38b7ae6a73e7f1a979a95ff245a (diff)
tests: rtpcollision: use alawenc/dec in these tests instead of Speex
They should always be built, while the speex elements are not. Need to check for a smaller number of buffers then (7->4) because speexenc will add 3 header buffers while alawenc will just output as many buffers as it receives as input. https://bugzilla.gnome.org/show_bug.cgi?id=742098
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/rtpcollision.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/check/elements/rtpcollision.c b/tests/check/elements/rtpcollision.c
index e9528f9a5..16f665fd6 100644
--- a/tests/check/elements/rtpcollision.c
+++ b/tests/check/elements/rtpcollision.c
@@ -156,7 +156,7 @@ fake_udp_sink_chain_func (GstPad * pad, GstObject * parent, GstBuffer * buffer)
return GST_FLOW_OK;
}
-/* This test build the pipeline audiotestsrc ! speexenc ! rtpspeexpay ! \
+/* This test build the pipeline audiotestsrc ! alawenc ! rtppcmapay ! \
* rtpsession ! fakesink
* It manually pushs buffer into rtpsession with same ssrc but different
* ip so that collision can be detected
@@ -186,9 +186,9 @@ GST_START_TEST (test_master_ssrc_collision)
src = gst_element_factory_make ("audiotestsrc", "src");
g_object_set (src, "num-buffers", 5, NULL);
- encoder = gst_element_factory_make ("speexenc", NULL);
- rtppayloader = gst_element_factory_make ("rtpspeexpay", NULL);
- g_object_set (rtppayloader, "pt", 96, NULL);
+ encoder = gst_element_factory_make ("alawenc", NULL);
+ rtppayloader = gst_element_factory_make ("rtppcmapay", NULL);
+ g_object_set (rtppayloader, "pt", 8, NULL);
rtpsession = gst_element_factory_make ("rtpsession", NULL);
sink = gst_element_factory_make ("fakesink", "sink");
gst_bin_add_many (GST_BIN (bin), src, encoder, rtppayloader,
@@ -261,7 +261,7 @@ GST_START_TEST (test_master_ssrc_collision)
gst_object_unref (bin);
/* check results */
- fail_unless_equals_int (nb_ssrc_changes, 7);
+ fail_unless_equals_int (nb_ssrc_changes, 4);
}
GST_END_TEST;
@@ -325,7 +325,7 @@ rtpsession_sinkpad_probe2 (GstPad * pad, GstPadProbeInfo * info,
return ret;
}
-/* This test build the pipeline audiotestsrc ! speexenc ! rtpspeexpay ! \
+/* This test build the pipeline audiotestsrc ! alawenc ! rtppcmapay ! \
* rtprtxsend ! rtpsession ! fakesink
* It manually pushs buffer into rtpsession with same ssrc than rtx stream
* but different ip so that collision can be detected
@@ -355,12 +355,12 @@ GST_START_TEST (test_rtx_ssrc_collision)
src = gst_element_factory_make ("audiotestsrc", "src");
g_object_set (src, "num-buffers", 5, NULL);
- encoder = gst_element_factory_make ("speexenc", NULL);
- rtppayloader = gst_element_factory_make ("rtpspeexpay", NULL);
- g_object_set (rtppayloader, "pt", 96, NULL);
+ encoder = gst_element_factory_make ("alawenc", NULL);
+ rtppayloader = gst_element_factory_make ("rtppcmapay", NULL);
+ g_object_set (rtppayloader, "pt", 8, NULL);
rtprtxsend = gst_element_factory_make ("rtprtxsend", NULL);
pt_map = gst_structure_new ("application/x-rtp-pt-map",
- "96", G_TYPE_UINT, 99, NULL);
+ "8", G_TYPE_UINT, 99, NULL);
g_object_set (rtprtxsend, "payload-type-map", pt_map, NULL);
gst_structure_free (pt_map);
rtpsession = gst_element_factory_make ("rtpsession", NULL);