rtph264pay: Fix reading timestamps from adapter
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 25 Sep 2018 15:49:52 +0000 (11:49 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 18 Dec 2018 18:30:05 +0000 (13:30 -0500)
commit1f72131781816870a3e266b8f12e49c31b17ace1
tree5483f53a21251434d7338ad5d129cd42a5401b2b
parent4add820cce278213ede3d5fce427ea92e0619b6f
rtph264pay: 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/gstrtph264pay.c