mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
videomixer2: Send stream-start before caps event
https://bugzilla.gnome.org/show_bug.cgi?id=699895
This commit is contained in:
parent
a8460654d5
commit
1588cda9a1
1 changed files with 11 additions and 0 deletions
|
@ -1608,6 +1608,17 @@ gst_videomixer2_src_setcaps (GstPad * pad, GstVideoMixer2 * mix, GstCaps * caps)
|
|||
}
|
||||
GST_VIDEO_MIXER2_UNLOCK (mix);
|
||||
|
||||
if (mix->send_stream_start) {
|
||||
gchar s_id[32];
|
||||
|
||||
/* stream-start (FIXME: create id based on input ids) */
|
||||
g_snprintf (s_id, sizeof (s_id), "mix-%08x", g_random_int ());
|
||||
if (!gst_pad_push_event (mix->srcpad, gst_event_new_stream_start (s_id))) {
|
||||
GST_WARNING_OBJECT (mix->srcpad, "Sending stream start event failed");
|
||||
}
|
||||
mix->send_stream_start = FALSE;
|
||||
}
|
||||
|
||||
ret = gst_pad_set_caps (pad, caps);
|
||||
done:
|
||||
|
||||
|
|
Loading…
Reference in a new issue