From dac431ef3fee58870db21005b89650b892524cdd Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 5 Aug 2015 11:13:09 -0300 Subject: [PATCH] tests: rtpaux: use a dynamic pt in the test 1) Tests that using dynamic PT instead of the default ones work 2) If we ever decide to change the codec here we don't need to worry about change the PT for the default one of the new codec in the test https://bugzilla.gnome.org/show_bug.cgi?id=746445 --- tests/check/elements/rtpaux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/check/elements/rtpaux.c b/tests/check/elements/rtpaux.c index 5e7afeba81..236e2765b7 100644 --- a/tests/check/elements/rtpaux.c +++ b/tests/check/elements/rtpaux.c @@ -94,7 +94,7 @@ rtprtxsend_srcpad_probe (GstPad * pad, GstPadProbeInfo * info, payload_type = gst_rtp_buffer_get_payload_type (&rtp); /* main stream packets */ - if (payload_type == 8) { + if (payload_type == 96) { /* count packets of the main stream */ ++rtxdata->nb_packets; /* drop some packets */ @@ -238,7 +238,7 @@ GST_START_TEST (test_simple_rtpbin_aux) g_object_set (recvrtp_udpsrc, "port", 5006, NULL); rtpcaps = gst_caps_from_string - ("application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)PCMA,payload=(int)8"); + ("application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)PCMA,payload=(int)96"); g_object_set (recvrtp_udpsrc, "caps", rtpcaps, NULL); gst_caps_unref (rtpcaps); recvrtcp_udpsrc = gst_element_factory_make ("udpsrc", "recvrtcp_udpsrc");