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

Commit 641cf396 authored by Robert Shih's avatar Robert Shih
Browse files

NdkMediaDrm: properly check null listeners

Bug: 140456613
Test: NativeMediaDrmClearkeyTest
Change-Id: Id3bfaa3da4a73d1607f191d2ad44dce47ae7f4a0
parent f06897b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ struct AMediaDrm {
};

void DrmListener::notify(DrmPlugin::EventType eventType, int extra, const Parcel *obj) {
    if (!mEventListener && !mExpirationUpdateListener && !mKeysChangeListener) {
    if (!mEventListener || !mExpirationUpdateListener || !mKeysChangeListener) {
        ALOGE("No listeners are specified");
        return;
    }