diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-05-15 10:54:46 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-05-15 10:56:20 +0200 |
commit | 3de73279dfa9abb7c858bb48fc835cf9fb45d479 (patch) | |
tree | a05acfe7d7f216185aabec0f7e78f5f8ee0f38df /gst/asfmux/gstasfmux.c | |
parent | a6bc88f8af3d09adb5e8bc083d16eba23c701177 (diff) | |
download | gstreamer-plugins-bad-3de73279dfa9abb7c858bb48fc835cf9fb45d479.tar.gz |
asfmux: Send stream-start event
Diffstat (limited to 'gst/asfmux/gstasfmux.c')
-rw-r--r-- | gst/asfmux/gstasfmux.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/asfmux/gstasfmux.c b/gst/asfmux/gstasfmux.c index ff0658541..a1a6a0980 100644 --- a/gst/asfmux/gstasfmux.c +++ b/gst/asfmux/gstasfmux.c @@ -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); |