mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
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:
parent
755dba4561
commit
f6e383b749
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue