asfmux: Send stream-start event

This commit is contained in:
Sebastian Dröge 2013-05-15 10:54:46 +02:00
parent a6bc88f8af
commit 3de73279df

View file

@ -1260,6 +1260,7 @@ gst_asf_mux_start_file (GstAsfMux * asfmux)
guint64 padding = asfmux->prop_padding;
GstSegment segment;
GstMapInfo map;
gchar s_id[32];
if (padding < ASF_PADDING_OBJECT_SIZE)
padding = 0;
@ -1268,6 +1269,10 @@ gst_asf_mux_start_file (GstAsfMux * asfmux)
GST_INFO_OBJECT (asfmux, "Writing headers");
asfmux->state = GST_ASF_MUX_STATE_HEADERS;
/* stream-start (FIXME: create id based on input ids) */
g_snprintf (s_id, sizeof (s_id), "asfmux-%08x", g_random_int ());
gst_pad_push_event (asfmux->srcpad, gst_event_new_stream_start (s_id));
caps = gst_pad_get_pad_template_caps (asfmux->srcpad);
gst_pad_set_caps (asfmux->srcpad, caps);
gst_caps_unref (caps);