mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 11:08:34 +00:00
qtmux: send stream-start event
This commit is contained in:
parent
ea7f8a919c
commit
bc37b9f4fc
1 changed files with 5 additions and 0 deletions
|
@ -1619,9 +1619,14 @@ gst_qt_mux_start_file (GstQTMux * qtmux)
|
||||||
GstFlowReturn ret = GST_FLOW_OK;
|
GstFlowReturn ret = GST_FLOW_OK;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GstSegment segment;
|
GstSegment segment;
|
||||||
|
gchar s_id[32];
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (qtmux, "starting file");
|
GST_DEBUG_OBJECT (qtmux, "starting file");
|
||||||
|
|
||||||
|
/* stream-start (FIXME: create id based on input ids) */
|
||||||
|
g_snprintf (s_id, sizeof (s_id), "qtmux-%08x", g_random_int ());
|
||||||
|
gst_pad_push_event (qtmux->srcpad, gst_event_new_stream_start (s_id));
|
||||||
|
|
||||||
caps = gst_caps_copy (gst_pad_get_pad_template_caps (qtmux->srcpad));
|
caps = gst_caps_copy (gst_pad_get_pad_template_caps (qtmux->srcpad));
|
||||||
/* qtmux has structure with and without variant, remove all but the first */
|
/* qtmux has structure with and without variant, remove all but the first */
|
||||||
while (gst_caps_get_size (caps) > 1)
|
while (gst_caps_get_size (caps) > 1)
|
||||||
|
|
Loading…
Reference in a new issue