videodecoder: use DTS if PTS unknown
authorStéphane Cerveau <scerveau@collabora.com>
Mon, 19 Apr 2021 11:28:39 +0000 (13:28 +0200)
committerStéphane Cerveau <scerveau@collabora.com>
Mon, 19 Apr 2021 11:28:39 +0000 (13:28 +0200)
commitada8b07be20351d509f6bac71dbe2fc6154ce9f7
tree6d086b7b2fdbc96477c4b0e015f754af9730542e
parent33167573e1f792f2f7ebfadc8920203c66858607
videodecoder: use DTS if PTS unknown

The buffer should be set according to DTS if exists
when we are guessin the PTS instead of segment start.
The decoder can receive buffers which are before the segment
in case of seek for example.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1111>
gst-libs/gst/video/gstvideodecoder.c