mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
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:
@@ -2133,7 +2133,7 @@ clapper_player_thread_start (ClapperThreadedObject *threaded_object)
|
|||||||
if (!(env = g_getenv ("CLAPPER_USE_PLAYBIN3"))) // Clapper override
|
if (!(env = g_getenv ("CLAPPER_USE_PLAYBIN3"))) // Clapper override
|
||||||
env = g_getenv ("GST_CLAPPER_USE_PLAYBIN3"); // compat
|
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";
|
playbin_str = (self->use_playbin3) ? "playbin3" : "playbin";
|
||||||
|
|
||||||
if (!(self->playbin = gst_element_factory_make (playbin_str, NULL))) {
|
if (!(self->playbin = gst_element_factory_make (playbin_str, NULL))) {
|
||||||
|
Reference in New Issue
Block a user