rtpsource: fix stats about received packets
authorAntonio Ospite <antonio.ospite@collabora.com>
Tue, 5 Mar 2019 12:43:12 +0000 (13:43 +0100)
committerAntonio Ospite <antonio.ospite@collabora.com>
Tue, 2 Apr 2019 07:26:03 +0000 (09:26 +0200)
commit0fae88b5fd15fd613aa8ae1cb9e8fb56746fddac
tree198cd30c93793060da2ff0430c59079e402d1303
parenta330012d6ac3533eac8cbd1ae08ab05802c85e8a
rtpsource: fix stats about received packets

The update_receiver_stats() function is called also when sending packets
in rtp_source_send_rtp(), and sending packets may happen using a buffer
list rather than individual buffers.

So update the stats using the actual number of packets sent.

NOTE: this is fine for the receive path too (rtp_process_send_rtp)
because the receive path does not support buffer lists and
pinfo->packets would always be equal to 1 in this case.
gst/rtpmanager/rtpsource.c