mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
tests: rtpaux: fix test failure
The RTP PT for alaw is 8. Less than 50 packets are received in the length of this test so it would never drop a buffer or would drop only the last buffer and it would fail sometimes when the received wouldn't receive the retransmission packet in time. https://bugzilla.gnome.org/show_bug.cgi?id=746445
This commit is contained in:
parent
c9ea95481c
commit
5f9e5bf385
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 == 96) {
|
||||
if (payload_type == 8) {
|
||||
/* count packets of the main stream */
|
||||
++rtxdata->nb_packets;
|
||||
/* drop some packets */
|
||||
|
@ -202,7 +202,7 @@ GST_START_TEST (test_simple_rtpbin_aux)
|
|||
RTXSendData send_rtxdata;
|
||||
send_rtxdata.count = 1;
|
||||
send_rtxdata.nb_packets = 0;
|
||||
send_rtxdata.drop_every_n_packets = 50;
|
||||
send_rtxdata.drop_every_n_packets = 25;
|
||||
|
||||
GST_INFO ("preparing test");
|
||||
|
||||
|
|
Loading…
Reference in a new issue