hlssink2: Use the new reset-muxer property on splitmuxsink

We don't want to reset the muxer, otherwise the continuity counter will
reset after each segment and some software gets confused. We want to
create a continuous stream.

https://bugzilla.gnome.org/show_bug.cgi?id=794816
This commit is contained in:
Sebastian Dröge 2018-03-29 19:18:23 +03:00
parent 7a2110a499
commit 385a68b850

View file

@ -197,7 +197,7 @@ gst_hls_sink2_init (GstHlsSink2 * sink)
mux = gst_element_factory_make ("mpegtsmux", NULL);
g_object_set (sink->splitmuxsink, "location", sink->location, "max-size-time",
((GstClockTime) sink->target_duration * GST_SECOND),
"send-keyframe-requests", TRUE, "muxer", mux, NULL);
"send-keyframe-requests", TRUE, "muxer", mux, "reset-muxer", FALSE, NULL);
GST_OBJECT_FLAG_SET (sink, GST_ELEMENT_FLAG_SINK);