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

Commit d88c34b6 authored by Andreas Huber's avatar Andreas Huber Committed by Android Git Automerger
Browse files

am 77cf463c: am 00bbca96: Merge "Don\'t even try to verify the native...

am 77cf463c: am 00bbca96: Merge "Don\'t even try to verify the native resolution validity a" into jb-mr2-dev

* commit '77cf463c':
  Don't even try to verify the native resolution validity a
parents dcd82dfa 77cf463c
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -249,11 +249,20 @@ bool VideoFormats::parseFormatSpec(const char *spec) {
    mNativeIndex = native >> 3;
    mNativeType = (ResolutionType)(native & 7);

    bool success;
    if (mNativeType >= kNumResolutionTypes) {
        return false;
        success = false;
    } else {
        success = GetConfiguration(
                mNativeType, mNativeIndex, NULL, NULL, NULL, NULL);
    }

    return GetConfiguration(mNativeType, mNativeIndex, NULL, NULL, NULL, NULL);
    if (!success) {
        ALOGW("sink advertised an illegal native resolution, fortunately "
              "this value is ignored for the time being...");
    }

    return true;
}

AString VideoFormats::getFormatSpec(bool forM4Message) const {