transition: Enhance name of the elements

Making it simpler to debug

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/204>
This commit is contained in:
Thibault Saunier 2020-07-21 08:49:35 -04:00
parent ffa00b24a2
commit e5b1215d1e

View file

@ -353,9 +353,12 @@ ges_video_transition_create_element (GESTrackElement * object)
gst_bin_add_many (GST_BIN (topbin), iconva, iconvb, priv->positioner,
oconv, NULL);
mixer = ges_smart_mixer_new (NULL);
mixer =
g_object_new (GES_TYPE_SMART_MIXER, "name",
GES_TIMELINE_ELEMENT_NAME (object), NULL);
GES_SMART_MIXER (mixer)->is_transition = TRUE;
g_object_set (GES_SMART_MIXER (mixer)->mixer, "background", 3, NULL); /* transparent */
gst_util_set_object_arg (G_OBJECT (GES_SMART_MIXER (mixer)->mixer),
"background", "transparent");
gst_bin_add (GST_BIN (topbin), mixer);
priv->mixer_sinka =