mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
playbin3: Always register 'playbin3' element.
If the USE_PLAYBIN3=1 env var is set, we want to replace playbin with playbin3, but separate to that, we always want to register the 'playbin3' element so that applications which explicitly use playbin3 work regardless of the env var. This fixes `USE_PLAYBIN3=1 gst-validate-launcher`, for example. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1102>
This commit is contained in:
parent
0d96e43c91
commit
e06ac494b8
1 changed files with 5 additions and 4 deletions
|
@ -5196,10 +5196,11 @@ 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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue