summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2012-09-23 15:16:14 +0100
committerTim-Philipp Müller <tim@centricular.net>2012-09-23 16:33:34 +0100
commitc3f62d7eadae3a59b36a86235ab73142fe8db209 (patch)
treef06646f6e50790acd6c0e1351ef66d99c2c74398 /gst
parent40f3fcaa131a966875670767eefe68bbf8506ba1 (diff)
avimux: send stream-start event
Diffstat (limited to 'gst')
-rw-r--r--gst/avi/gstavimux.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c
index cce804f35..273955598 100644
--- a/gst/avi/gstavimux.c
+++ b/gst/avi/gstavimux.c
@@ -1711,6 +1711,14 @@ gst_avi_mux_start_file (GstAviMux * avimux)
}
}
+ /* stream-start (FIXME: create id based on input ids) */
+ {
+ gchar s_id[32];
+
+ g_snprintf (s_id, sizeof (s_id), "avimux-%08x", g_random_int ());
+ gst_pad_push_event (avimux->srcpad, gst_event_new_stream_start (s_id));
+ }
+
caps = gst_pad_get_pad_template_caps (avimux->srcpad);
gst_pad_set_caps (avimux->srcpad, caps);
gst_caps_unref (caps);