splitmuxsink: Include actual sink element in the fragment-opened/closed messages

If not configuring the sinks via the "location" property this can be
useful to know for which sink the fragment was actually opened/closed,
especially if finalization of the fragments is happening asynchronously.
This commit is contained in:
Sebastian Dröge 2020-01-27 16:00:30 +02:00 committed by GStreamer Merge Bot
parent 755dba4561
commit f6e383b749

View file

@ -1001,7 +1001,8 @@ send_fragment_opened_closed_msg (GstSplitMuxSink * splitmux, gboolean opened,
msg = gst_message_new_element (GST_OBJECT (splitmux),
gst_structure_new (msg_name,
"location", G_TYPE_STRING, location,
"running-time", GST_TYPE_CLOCK_TIME, running_time, NULL));
"running-time", GST_TYPE_CLOCK_TIME, running_time,
"sink", GST_TYPE_ELEMENT, sink, NULL));
gst_element_post_message (GST_ELEMENT_CAST (splitmux), msg);
}