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

Commit 569c70a2 authored by Pawin Vongmasa's avatar Pawin Vongmasa
Browse files

Enable CodecBase plugin in MediaCodec by default

Test: Builds

Bug: 64121714
Bug: 79469482
Change-Id: Iaced794d60f2918065ac676a5c0efae1e121c394
parent 7bb4333f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -854,8 +854,7 @@ static CodecBase *CreateCCodec() {

//static
sp<CodecBase> MediaCodec::GetCodecBase(const AString &name) {
    static bool ccodecEnabled = property_get_bool("debug.stagefright.ccodec", false);
    if (ccodecEnabled && name.startsWithIgnoreCase("c2.")) {
    if (name.startsWithIgnoreCase("c2.")) {
        return CreateCCodec();
    } else if (name.startsWithIgnoreCase("omx.")) {
        // at this time only ACodec specifies a mime type.
+1 −3
Original line number Diff line number Diff line
@@ -93,9 +93,7 @@ MediaCodecListBuilderBase *GetCodec2InfoBuilder() {

std::vector<MediaCodecListBuilderBase *> GetBuilders() {
    std::vector<MediaCodecListBuilderBase *> builders {&sOmxInfoBuilder};
    if (property_get_bool("debug.stagefright.ccodec", false)) {
    builders.push_back(GetCodec2InfoBuilder());
    }
    return builders;
}