splitmuxsink: Update tracked running time before first fragment-opened

Before sending the first fragment-opened message on the bus, update
the output_fragment_info structure so that the sent message correctly
reports the initial running time.

Fixes #3725

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7361>
This commit is contained in:
Jan Schmidt 2024-08-15 19:00:53 +10:00 committed by GStreamer Marge Bot
parent c27d0842ce
commit eb5b064145

View file

@ -2321,6 +2321,7 @@ start_next_fragment (GstSplitMuxSink * splitmux, MqStreamCtx * ctx)
g_list_foreach (splitmux->contexts, (GFunc) unlock_context, splitmux);
g_list_foreach (splitmux->contexts, (GFunc) restart_context, splitmux);
update_output_fragment_info (splitmux);
send_fragment_opened_closed_msg (splitmux, TRUE, sink);
/* FIXME: Is this always the correct next state? */