basesink: Clear EOS flag on STREAM-START event

EOS -> STREAM-START -> new data flow is valid scenario

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4782>
This commit is contained in:
Seungha Yang 2023-06-06 04:42:05 +09:00 committed by GStreamer Marge Bot
parent 9b0736c85d
commit 63a529ffd4

View file

@ -3664,6 +3664,9 @@ gst_base_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
if (bclass->event)
result = bclass->event (basesink, event);
break;
case GST_EVENT_STREAM_START:
basesink->priv->received_eos = FALSE;
/* fallthrough */
default:
if (GST_EVENT_IS_SERIALIZED (event)) {
GST_BASE_SINK_PREROLL_LOCK (basesink);