Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5bdd770 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

mediaplayer: make nuplayer the default player

Bug: 11784824
Change-Id: I60d215d0348adcd589da5bd479d5921dcf076ee4
parent 141670d4
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -62,18 +62,18 @@ status_t MediaPlayerFactory::registerFactory_l(IFactory* factory,

player_type MediaPlayerFactory::getDefaultPlayerType() {
    char value[PROPERTY_VALUE_MAX];
    if (property_get("media.stagefright.use-nuplayer", value, NULL)
    if (property_get("media.stagefright.use-awesome", value, NULL)
            && (!strcmp("1", value) || !strcasecmp("true", value))) {
        return NU_PLAYER;
        return STAGEFRIGHT_PLAYER;
    }

    // TODO: remove this EXPERIMENTAL developer settings property
    if (property_get("persist.sys.media.use-nuplayer", value, NULL)
    if (property_get("persist.sys.media.use-awesome", value, NULL)
            && !strcasecmp("true", value)) {
        return NU_PLAYER;
        return STAGEFRIGHT_PLAYER;
    }

    return STAGEFRIGHT_PLAYER;
    return NU_PLAYER;
}

status_t MediaPlayerFactory::registerFactory(IFactory* factory,