diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2012-09-23 15:57:35 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-09-23 16:33:35 +0100 |
commit | bc37b9f4fce4506eb7505a72364777c53aada7c9 (patch) | |
tree | 8bb63b2b6080fc166d144370c263e6437c015ead | |
parent | ea7f8a919c2e8bc06e68f23f164e92d93926386d (diff) | |
download | gstreamer-plugins-good-bc37b9f4fce4506eb7505a72364777c53aada7c9.tar.gz |
qtmux: send stream-start event
-rw-r--r-- | gst/isomp4/gstqtmux.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index d0b5ccd96..b86a90c36 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -1619,9 +1619,14 @@ gst_qt_mux_start_file (GstQTMux * qtmux) GstFlowReturn ret = GST_FLOW_OK; GstCaps *caps; GstSegment segment; + gchar s_id[32]; 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)); /* qtmux has structure with and without variant, remove all but the first */ while (gst_caps_get_size (caps) > 1) |