From ab659d0951f4cbc8c7f5304a5dcd215d5f530994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 13 Nov 2024 20:06:28 +0100 Subject: [PATCH] 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. --- src/lib/clapper/clapper-player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/clapper/clapper-player.c b/src/lib/clapper/clapper-player.c index 31879a7d..8649ef7e 100644 --- a/src/lib/clapper/clapper-player.c +++ b/src/lib/clapper/clapper-player.c @@ -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))) {