diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-05 11:13:09 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-06 01:39:43 -0300 |
commit | dac431ef3fee58870db21005b89650b892524cdd (patch) | |
tree | 8c04222f2d71f40966482ac64418cbd562f80345 | |
parent | b0d602086251c7ab435b6845884e4b0be277a218 (diff) |
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
-rw-r--r-- | tests/check/elements/rtpaux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/check/elements/rtpaux.c b/tests/check/elements/rtpaux.c index 5e7afeba8..236e2765b 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"); |