tests: rtpaux: fix test failure
authorThiago Santos <thiagoss@osg.samsung.com>
Tue, 4 Aug 2015 21:07:35 +0000 (18:07 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Tue, 4 Aug 2015 21:25:29 +0000 (18:25 -0300)
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

tests/check/elements/rtpaux.c

index 729604a..5e7afeb 100644 (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");