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

Commit f11dd63e authored by Narayan Kamath's avatar Narayan Kamath
Browse files

MediaDrm#mNativeContext is a long, not int.

Therefore, we must use SetLongField and not SetIntField.

Change-Id: I2a805dd6b7c8e4905e742d8632d941f381a05930
parent 3da645f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -491,7 +491,7 @@ static sp<JDrm> setDrm(
    if (old != NULL) {
        old->decStrong(thiz);
    }
    env->SetIntField(thiz, gFields.context, (int)drm.get());
    env->SetLongField(thiz, gFields.context, reinterpret_cast<jlong>(drm.get()));

    return old;
}