playback: Remove USE_PLAYBIN3 registration override

This was only introduced as a convenience for testing playbin3 instead of
playbin2.

Now that playbin3 is (explicitely) default in many cases, we should not do this
hack anymore

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6255>
This commit is contained in:
Edward Hervey 2024-03-04 12:22:25 +01:00
parent 23f654a943
commit 3f7f9145d2
2 changed files with 1 additions and 7 deletions

View file

@ -39,9 +39,8 @@ static gboolean
plugin_init (GstPlugin * plugin)
{
gboolean res = FALSE;
if (!g_getenv ("USE_PLAYBIN3"))
res |= GST_ELEMENT_REGISTER (playbin, plugin);
res |= GST_ELEMENT_REGISTER (playbin, plugin);
res |= GST_ELEMENT_REGISTER (playbin3, plugin);
res |= GST_ELEMENT_REGISTER (playsink, plugin);
res |= GST_ELEMENT_REGISTER (subtitleoverlay, plugin);

View file

@ -2898,11 +2898,6 @@ gst_play_bin3_custom_element_init (GstPlugin * plugin)
playback_element_init (plugin);
if (g_getenv ("USE_PLAYBIN3")) {
ret &= gst_element_register (plugin, "playbin", GST_RANK_NONE,
GST_TYPE_PLAY_BIN);
}
ret &= gst_element_register (plugin, "playbin3", GST_RANK_NONE,
GST_TYPE_PLAY_BIN);