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

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

stagefright: allow OMX aliases by Codec2 after alias change

Fix misleading strncmp, and use strncmp only for checking beginning
of string.

Bug: 119631295
Change-Id: Ibdffb5b1844fc12e264148a05a8f8ab89e310c47
parent 3bc3a5fd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -862,9 +862,9 @@ static CodecBase *CreateCCodec() {
//static
sp<CodecBase> MediaCodec::GetCodecBase(const AString &name, const char *owner) {
    if (owner) {
        if (strncmp(owner, "default", 8) == 0) {
        if (strcmp(owner, "default") == 0) {
            return new ACodec;
        } else if (strncmp(owner, "codec2", 7) == 0) {
        } else if (strncmp(owner, "codec2", 6) == 0) {
            return CreateCCodec();
        }
    }