Set the correct message for OMX's death
Test: Play a video, then kill media.codec.
Bug: 125567263
Change-Id: I4fffe37b75f21cd15d9ad667b264bf15660887b3
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index 9d3338b..13903ba 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -6667,7 +6667,7 @@
return false;
}
- mDeathNotifier = new DeathNotifier(notify);
+ mDeathNotifier = new DeathNotifier(new AMessage(kWhatOMXDied, mCodec));
auto tOmxNode = omxNode->getHalInterface<IOmxNode>();
if (tOmxNode && !tOmxNode->linkToDeath(mDeathNotifier, 0)) {
mDeathNotifier.clear();