rtprtxsend: Update statistics before pushing
authorEdward Hervey <edward@centricular.com>
Sun, 27 Nov 2016 10:14:13 +0000 (11:14 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Sun, 27 Nov 2016 10:15:49 +0000 (11:15 +0100)
commit91f5b4eaa2fcd874361d16bdf80497c3cdd12d13
tree519cd6cd085083e63066287ad2eb8b7b3174a0b7
parentda025dc8109a0d0cee9b65ad5a4a67eb3fd01d35
rtprtxsend: Update statistics before pushing

If an element queries the number of retransmission buffers pushed
*while* the push is still taking place (and before the object lock
is taken just after) it would end up with the wrong statistic
being reported.

Increment it just before the push, avoids races when getting statistics

https://bugzilla.gnome.org/show_bug.cgi?id=768723
gst/rtpmanager/gstrtprtxsend.c