clapper: Use playbin3 by default

New GStreamer adaptive demuxers work only within playbin3. In order to not
introduce new APIs (setting adaptive bitrate) that do not work by default
and to have the whole "clapper-enhancers" concept working correctly, its
about time to move on to playbin3.
This commit is contained in:
Rafał Dzięgiel
2024-11-13 20:06:28 +01:00
parent bd3ce28716
commit ab659d0951

View File

@@ -2133,7 +2133,7 @@ clapper_player_thread_start (ClapperThreadedObject *threaded_object)
if (!(env = g_getenv ("CLAPPER_USE_PLAYBIN3"))) // Clapper override
env = g_getenv ("GST_CLAPPER_USE_PLAYBIN3"); // compat
self->use_playbin3 = (env && g_str_has_prefix (env, "1"));
self->use_playbin3 = (!env || g_str_has_prefix (env, "1"));
playbin_str = (self->use_playbin3) ? "playbin3" : "playbin";
if (!(self->playbin = gst_element_factory_make (playbin_str, NULL))) {