rtp: include downstream latency in SR calculations
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 7 Jan 2013 14:45:10 +0000 (15:45 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 7 Jan 2013 14:45:10 +0000 (15:45 +0100)
commit87f7d6b9bf54cc4303e79d0a9d8b8d0a6089d27a
treecd7ddaaad7820b80f56359a2f1bb909e096a5b77
parentc631ed3300a75004c983328a93a094cea0c180b1
rtp: include downstream latency in SR calculations

When we make a mapping between an RTP timestamp and an NTP timestamp, include
the downstream latency applied to the sinks. This makes it possible to have
both sinks run with different latencies and still have correct sync on the
client. It also is more correct because the RTP timestamp in the SR report will
actually correspond more closely to the NTP time it was sent on the server.
For pipelines with high latency on the sender side, this actually allows a
GStreamer receiver to perform synchronisation instead of dropping the RTCP
packets.
gst/rtpmanager/gstrtpsession.c