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

Commit 1a08ad1c authored by Andreas Huber's avatar Andreas Huber Committed by Android (Google) Code Review
Browse files

Merge "Make metadata support through stagefright property dependent until it's ready."

parents c4273482 7782fdf5
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@

#include <string.h>
#include <cutils/atomic.h>
#include <cutils/properties.h>
#include <binder/MemoryDealer.h>
#include <android_runtime/ActivityManager.h>
#include <binder/IPCThreadState.h>
@@ -107,14 +108,17 @@ static sp<MediaMetadataRetrieverBase> createRetriever(player_type playerType)
    switch (playerType) {
#if BUILD_WITH_FULL_STAGEFRIGHT
        case STAGEFRIGHT_PLAYER:
            // For now we are going to keep using PV for meta-data support
            // until stagefright is up to par.

            // LOGV("create StagefrightMetadataRetriever");
            // p = new StagefrightMetadataRetriever;
            // break;
        {
            char value[PROPERTY_VALUE_MAX];
            if (property_get("media.stagefright.enable-meta", value, NULL)
                && (!strcmp(value, "1") || !strcasecmp(value, "true"))) {
                LOGV("create StagefrightMetadataRetriever");
                p = new StagefrightMetadataRetriever;
                break;
            }

            // fall through to PV_PLAYER
            // fall through
        }
#endif
#ifndef NO_OPENCORE
        case PV_PLAYER: