streamsynchronizer: reset eos on STREAM_START
authorGuillaume Desmottes <guillaume.desmottes@onestream.live>
Wed, 31 May 2023 14:05:48 +0000 (16:05 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 1 Jun 2023 11:15:00 +0000 (11:15 +0000)
commitdd6e889073003105796890385308c727d5ecbc37
tree897cf226731cffdf58fc47c92098967382a4b7fa
parent7faadfe88280c4880238115be54c9222db669465
streamsynchronizer: reset eos on STREAM_START

self->eos was never reset after streamsynchronizer has sent EOS
(except on explicit flush or switching back to PAUSED).
As a result, synchronization was broken if new streams were pushed later
as gst_stream_synchronizer_wait() does not wait if self->eos is set.

Fix this by reseting self->eos on STREAM_START as that means a new
stream is being sent upstream and so a new EOS will follow later on.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4755>
subprojects/gst-plugins-base/gst/playback/gststreamsynchronizer.c