qtmux: send stream-start event
authorTim-Philipp Müller <tim@centricular.net>
Sun, 23 Sep 2012 14:57:35 +0000 (15:57 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 23 Sep 2012 15:33:35 +0000 (16:33 +0100)
gst/isomp4/gstqtmux.c

index d0b5ccd..b86a90c 100644 (file)
@@ -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)