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

Commit fa457005 authored by Lajos Molnar's avatar Lajos Molnar Committed by android-build-merger
Browse files

Merge "media: enable Codec 2.0 by default" into qt-dev

am: 6de2d24b

Change-Id: Ia13eb0df993a5bb7be0625f04700a8aa3f1b3c87
parents 311887c4 6de2d24b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -313,7 +313,7 @@ status_t Codec2InfoBuilder::buildMediaCodecList(MediaCodecListWriter* writer) {
    //
    //
    // Note: Currently, OMX components have default rank 0x100, while all
    // Note: Currently, OMX components have default rank 0x100, while all
    // Codec2.0 software components have default rank 0x200.
    // Codec2.0 software components have default rank 0x200.
    int option = ::android::base::GetIntProperty("debug.stagefright.ccodec", 1);
    int option = ::android::base::GetIntProperty("debug.stagefright.ccodec", 4);


    // Obtain Codec2Client
    // Obtain Codec2Client
    std::vector<Traits> traits = Codec2Client::ListComponents();
    std::vector<Traits> traits = Codec2Client::ListComponents();
+1 −1
Original line number Original line Diff line number Diff line
@@ -35,7 +35,7 @@ constexpr const char kCCodecPluginPath[] = "libsfplugin_ccodec.so";
}  // unnamed namespace
}  // unnamed namespace


StagefrightPluginLoader::StagefrightPluginLoader(const char *libPath) {
StagefrightPluginLoader::StagefrightPluginLoader(const char *libPath) {
    if (android::base::GetIntProperty("debug.media.codec2", 0) == 0) {
    if (android::base::GetIntProperty("ro.media.codec2.enable", 1) == 0) {
        ALOGD("CCodec is disabled.");
        ALOGD("CCodec is disabled.");
        return;
        return;
    }
    }