mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
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
This commit is contained in:
parent
b0d6020862
commit
dac431ef3f
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue