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

Commit 326bea5e authored by Pawin Vongmasa's avatar Pawin Vongmasa
Browse files

Set the correct message for OMX's death

Test: Play a video, then kill media.codec.

Bug: 125567263
Change-Id: I4fffe37b75f21cd15d9ad667b264bf15660887b3
parent 8c27e78f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -6667,7 +6667,7 @@ bool ACodec::UninitializedState::onAllocateComponent(const sp<AMessage> &msg) {
        return false;
        return false;
    }
    }


    mDeathNotifier = new DeathNotifier(notify);
    mDeathNotifier = new DeathNotifier(new AMessage(kWhatOMXDied, mCodec));
    auto tOmxNode = omxNode->getHalInterface<IOmxNode>();
    auto tOmxNode = omxNode->getHalInterface<IOmxNode>();
    if (tOmxNode && !tOmxNode->linkToDeath(mDeathNotifier, 0)) {
    if (tOmxNode && !tOmxNode->linkToDeath(mDeathNotifier, 0)) {
        mDeathNotifier.clear();
        mDeathNotifier.clear();