playbin{2,3}: fix base_time selection when flush seeking live
authorMathieu Duponchelle <mathieu@centricular.com>
Mon, 12 Apr 2021 12:02:46 +0000 (14:02 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 12 Apr 2021 12:43:53 +0000 (12:43 +0000)
commitc17781e1a98e95f200738cb0c801dd9114ac0c03
tree38b32572c9de91e8aa84cf529c76fec08c35475b
parenta273573d1ed13ed615bc4c4d55e898a23bd9cca8
playbin{2,3}: fix base_time selection when flush seeking live

This is a direct translation of
<https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/429>,
as playbin{2,3} insulates its sub groups state changes from the pipeline
base class, it needs to track whether the subgroup is live itself,
and handle RESET_TIME the same way GstPipeline does.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1104>
gst/playback/gstplaybin2.c
gst/playback/gstplaybin3.c