rtph265pay: Fix reading timestamps from adapter
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 3 Oct 2018 18:14:17 +0000 (14:14 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 18 Dec 2018 18:30:05 +0000 (13:30 -0500)
commit0a6e5e439ce6aefbe8ebcf5bf4d02280c6d248a3
treed0a4240c910bd9ff6a8e13ed9435e8786529422a
parentff2e5b94b96e9c41a68310e3dd59fd8a44d47f96
rtph265pay: Fix reading timestamps from adapter

The code was reading the timestamp from the adapter before pushing the
new buffer into it. As a side effect, if the adapter was empty, we'd end
up using an older timestamp. In alignment=au, it means that all
timestamp was likely one frame in the past, while in alignment=nal, with
multiple slices per frame, the first slice would have the timestamp of
the previous one.
gst/rtp/gstrtph265pay.c