mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
GesTrackVideoTransition: Prefer videomixer2 to videomixer
If present
This commit is contained in:
parent
4d3e5f0531
commit
f8e6955459
1 changed files with 4 additions and 1 deletions
|
@ -181,6 +181,9 @@ ges_track_video_transition_create_element (GESTrackTransition * object)
|
|||
oconv = gst_element_factory_make ("ffmpegcolorspace", "tr-csp-output");
|
||||
|
||||
gst_bin_add_many (GST_BIN (topbin), iconva, iconvb, oconv, NULL);
|
||||
/* Prefer videomixer2 to videomixer */
|
||||
mixer = gst_element_factory_make ("videomixer2", NULL);
|
||||
if (mixer == NULL)
|
||||
mixer = gst_element_factory_make ("videomixer", NULL);
|
||||
g_object_set (G_OBJECT (mixer), "background", 1, NULL);
|
||||
gst_bin_add (GST_BIN (topbin), mixer);
|
||||
|
|
Loading…
Reference in a new issue