GesTrackVideoTransition: Prefer videomixer2 to videomixer

If present
This commit is contained in:
Edward Hervey 2010-10-23 17:38:31 +02:00
parent 4d3e5f0531
commit f8e6955459

View file

@ -181,7 +181,10 @@ ges_track_video_transition_create_element (GESTrackTransition * object)
oconv = gst_element_factory_make ("ffmpegcolorspace", "tr-csp-output"); oconv = gst_element_factory_make ("ffmpegcolorspace", "tr-csp-output");
gst_bin_add_many (GST_BIN (topbin), iconva, iconvb, oconv, NULL); gst_bin_add_many (GST_BIN (topbin), iconva, iconvb, oconv, NULL);
mixer = gst_element_factory_make ("videomixer", 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); g_object_set (G_OBJECT (mixer), "background", 1, NULL);
gst_bin_add (GST_BIN (topbin), mixer); gst_bin_add (GST_BIN (topbin), mixer);