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:
Thiago Santos 2015-08-04 18:07:35 -03:00
parent c9ea95481c
commit 5f9e5bf385

View file

@ -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");