dashsink: Do not reset muxer only for TS

The MP4 needs to be reset to continue to produce segments.

Closes #1015

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5403>
This commit is contained in:
Stéphane Cerveau 2022-02-15 13:12:32 +01:00 committed by GStreamer Marge Bot
parent 8004b1650a
commit 2644b3608f

View file

@ -675,9 +675,12 @@ gst_dash_sink_add_splitmuxsink (GstDashSink * sink, GstDashSinkStream * stream)
g_object_set (stream->splitmuxsink, "location", NULL,
"max-size-time", ((GstClockTime) sink->target_duration * GST_SECOND),
"send-keyframe-requests", TRUE, "muxer", mux, "sink",
stream->giostreamsink, "reset-muxer", FALSE, "send-keyframe-requests",
stream->giostreamsink, "send-keyframe-requests",
sink->send_keyframe_requests, NULL);
if (sink->muxer == GST_DASH_SINK_MUXER_TS)
g_object_set (stream->splitmuxsink, "reset-muxer", FALSE, NULL);
g_signal_connect (stream->splitmuxsink, "format-location",
G_CALLBACK (on_format_location), stream);