diff --git a/subprojects/gst-plugins-base/gst/playback/gstplaybin3.c b/subprojects/gst-plugins-base/gst/playback/gstplaybin3.c index b793664352..70a19fef4b 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstplaybin3.c +++ b/subprojects/gst-plugins-base/gst/playback/gstplaybin3.c @@ -5196,12 +5196,13 @@ gst_play_bin3_custom_element_init (GstPlugin * plugin) playback_element_init (plugin); - if (g_getenv ("USE_PLAYBIN3")) + if (g_getenv ("USE_PLAYBIN3")) { ret &= gst_element_register (plugin, "playbin", GST_RANK_NONE, GST_TYPE_PLAY_BIN); - else - ret &= gst_element_register (plugin, "playbin3", GST_RANK_NONE, - GST_TYPE_PLAY_BIN); + } + + ret &= gst_element_register (plugin, "playbin3", GST_RANK_NONE, + GST_TYPE_PLAY_BIN); return ret; }