videodecoder: Add API for subclasses to signal that they need the stream to start...
authorSebastian Dröge <sebastian@centricular.com>
Wed, 1 Jul 2020 15:14:40 +0000 (18:14 +0300)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 10 Sep 2020 17:22:14 +0000 (17:22 +0000)
commitfdf79a786caba9c3853933a3897a722221fbe4d8
treefca7c3230848ca1fb3b109876a1ee53cf2985636
parent1afb145dc5ec4ae1f950649774d98c36e7805151
videodecoder: Add API for subclasses to signal that they need the stream to start with a sync point

If the first frame(s) at the very beginning or after a flush are not a
sync point then the base class would discard them before passing them to
the subclass.

This also fixes the previously broken distance_from_sync handling: it
was never reset at sync points.

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