From eb5b064145e22ebff00a3816e0cf09636fe1c40c Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Thu, 15 Aug 2024 19:00:53 +1000 Subject: [PATCH] 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: --- subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsink.c b/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsink.c index 047fc2e38a..9b49dd176b 100644 --- a/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsink.c +++ b/subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsink.c @@ -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? */