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

Commit b549ebce authored by Robert Shih's avatar Robert Shih Committed by Gerrit Code Review
Browse files

Merge "DrmStatus type checks"

parents dc5a1d6b 81c31a34
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;