rtpaux/rtprtx: Make tests non-racy
authorOlivier Crête <olivier.crete@ocrete.ca>
Mon, 5 May 2014 00:23:29 +0000 (20:23 -0400)
committerOlivier Crête <olivier.crete@ocrete.ca>
Mon, 5 May 2014 02:37:26 +0000 (22:37 -0400)
commit985897d8d95b13065ba19cb01aae105d2423feb2
tree178bc3f4d52713dce21d0e72d35a357aa37cdc3f
parentb2a52035bf8a33c2b334a70e7a853e2a991248ae
rtpaux/rtprtx: Make tests non-racy

Fix the raciness by iterating on a condition instead of using the gmainloop.
Don't use the EOS as the target, otherwise the retransmission of the last
packets are lost. Also count the retranmissions requests that are dropped.
Check the condition before blocking on the GCond

https://bugzilla.gnome.org/show_bug.cgi?id=728501
tests/check/elements/rtpaux.c
tests/check/elements/rtprtx.c