splitmuxsink: Increment fragment_id even if no fragment location was provided

Applications might handle locations and generally configuration of the
sink by themselves instead of having splitmuxsink set the location on
the sink. Nonetheless it makes sense to increment the fragment_id that
is passed to the signal so that applications know which fragment is
requested.
This commit is contained in:
Sebastian Dröge 2019-12-12 18:53:00 +02:00 committed by GStreamer Merge Bot
parent 9e0eb77810
commit 9f6ed9ec72

View file

@ -3175,9 +3175,9 @@ set_next_filename (GstSplitMuxSink * splitmux, MqStreamCtx * ctx)
"location") != NULL)
g_object_set (splitmux->sink, "location", fname, NULL);
g_free (fname);
splitmux->fragment_id++;
}
splitmux->fragment_id++;
}
/* called with GST_SPLITMUX_LOCK */