diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-04 18:07:35 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-08-04 18:25:29 -0300 |
commit | 5f9e5bf385d3851ce1b84fc560f9362559c2c154 (patch) | |
tree | 95946b12030cd8c657201e95cf81630ab8ae68da /tests | |
parent | c9ea95481c94012cea0869efdec7ded8f81198e9 (diff) | |
download | gstreamer-plugins-good-5f9e5bf385d3851ce1b84fc560f9362559c2c154.tar.gz |
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
Diffstat (limited to 'tests')
-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 729604aab..5e7afeba8 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 == 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"); |