mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
oggmux: send stream-start event
This commit is contained in:
parent
21ca8cc771
commit
1c22b1fe11
1 changed files with 6 additions and 0 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue