diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2012-09-23 13:27:27 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-09-23 13:27:27 +0100 |
commit | 1c22b1fe11601bae217bca2e134f8372e7f9b824 (patch) | |
tree | 448ec65a6298b6e62ecd438bc5a4c6260949c307 /ext/ogg | |
parent | 21ca8cc77147c9a55b2785331adf1ec4cb6838de (diff) |
oggmux: send stream-start event
Diffstat (limited to 'ext/ogg')
-rw-r--r-- | ext/ogg/gstoggmux.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/ogg/gstoggmux.c b/ext/ogg/gstoggmux.c index 42f09566a..51b8cc1de 100644 --- a/ext/ogg/gstoggmux.c +++ b/ext/ogg/gstoggmux.c @@ -1918,7 +1918,13 @@ static void gst_ogg_mux_send_start_events (GstOggMux * ogg_mux, GstCollectPads * pads) { GstSegment segment; + gchar s_id[32]; + /* stream-start (FIXME: create id based on input ids) */ + g_snprintf (s_id, sizeof (s_id), "oggmux-%08x", g_random_int ()); + gst_pad_push_event (ogg_mux->srcpad, gst_event_new_stream_start (s_id)); + + /* segment */ gst_segment_init (&segment, GST_FORMAT_BYTES); gst_pad_push_event (ogg_mux->srcpad, gst_event_new_segment (&segment)); |