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

Commit ae81ba6d authored by Robert Shih's avatar Robert Shih Committed by Automerger Merge Worker
Browse files

Merge "DrmStatus type checks" am: b549ebce

parents bf3285cf b549ebce
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -27,21 +27,20 @@ DrmStatus::DrmStatus(status_t err, const char *msg) : mStatus(err) {
        return;
    }

    std::string errMsg;
    auto val = errorDetails["cdmError"];
    if (!val.isNull()) {
    if (val.isInt()) {
        mCdmErr = val.asInt();
    }
    val = errorDetails["oemError"];
    if (!val.isNull()) {
    if (val.isInt()) {
        mOemErr = val.asInt();
    }
    val = errorDetails["context"];
    if (!val.isNull()) {
    if (val.isInt()) {
        mCtx = val.asInt();
    }
    val = errorDetails["errorMessage"];
    if (!val.isNull()) {
    if (val.isString()) {
        mErrMsg = val.asString();
    } else {
        mErrMsg = msg;