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

Commit 4e3496ba authored by Manikanta Kanamarlapudi's avatar Manikanta Kanamarlapudi Committed by Steve Kondik
Browse files

libstagefright: Fix for testHEVC_flushConfigureDrc

Some CTS test cases are sending the component name instead
of mime type. Check for the same before overriding the component name.

CRs-Fixed: 741059

Change-Id: I31b6052aa4972d6cb44e7e564cef945a18fcca25
parent 0d29b6db
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -252,7 +252,8 @@ void ExtendedCodec::overrideComponentName(
       }
    }

    if (!isEncoder && !strncasecmp(mime->c_str(), MEDIA_MIMETYPE_VIDEO_HEVC, strlen(MEDIA_MIMETYPE_VIDEO_HEVC))) {
    if (!isEncoder && (!strncasecmp(mime->c_str(), MEDIA_MIMETYPE_VIDEO_HEVC, strlen(MEDIA_MIMETYPE_VIDEO_HEVC)) ||
            !strncmp(componentName->c_str(), "OMX.qcom.video.decoder.hevc", strlen("OMX.qcom.video.decoder.hevc")))) {
        sw_codectype = property_get("media.swhevccodectype", value, NULL);
        enableSwHevc = atoi(value);
        if (sw_codectype && enableSwHevc) {