mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
mpegpsmux: Send stream-start event before any data
This commit is contained in:
parent
8ca1751f00
commit
f83e9405de
1 changed files with 5 additions and 0 deletions
|
@ -702,6 +702,11 @@ mpegpsdemux_prepare_srcpad (MpegPsMux * mux)
|
|||
GValue val = { 0, };
|
||||
GList *headers, *l;
|
||||
GstCaps *caps;
|
||||
gchar s_id[32];
|
||||
|
||||
/* stream-start (FIXME: create id based on input ids) */
|
||||
g_snprintf (s_id, sizeof (s_id), "mpegpsmux-%08x", g_random_int ());
|
||||
gst_pad_push_event (mux->srcpad, gst_event_new_stream_start (s_id));
|
||||
|
||||
caps = gst_caps_new_simple ("video/mpeg",
|
||||
"mpegversion", G_TYPE_INT, 2, "systemstream", G_TYPE_BOOLEAN, TRUE, NULL);
|
||||
|
|
Loading…
Reference in a new issue