diff options
author | Ronghua Wu <ronghuawu@google.com> | 2015-03-19 11:17:20 -0700 |
---|---|---|
committer | Ronghua Wu <ronghuawu@google.com> | 2015-04-09 14:47:58 -0700 |
commit | 4c302e8b141cd490733130e86e44fa4f216de457 (patch) | |
tree | 74cf98211789df297808b37b28c7209c4614e2b8 /media/jni | |
parent | 97f09ae8b0fd88e9e14942a12b9b7ddc8355a1c8 (diff) | |
download | frameworks_base-4c302e8b141cd490733130e86e44fa4f216de457.zip frameworks_base-4c302e8b141cd490733130e86e44fa4f216de457.tar.gz frameworks_base-4c302e8b141cd490733130e86e44fa4f216de457.tar.bz2 |
media: add new MediaCodec Callback onCodecReleased.
Bug: 19620911
Change-Id: I2912c570678861daf1516757dda2160ffddcfa8d
Diffstat (limited to 'media/jni')
-rw-r--r-- | media/jni/android_media_MediaCodec.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/media/jni/android_media_MediaCodec.cpp b/media/jni/android_media_MediaCodec.cpp index 16758d0..71457b7 100644 --- a/media/jni/android_media_MediaCodec.cpp +++ b/media/jni/android_media_MediaCodec.cpp @@ -669,6 +669,14 @@ void JMediaCodec::handleCallback(const sp<AMessage> &msg) { break; } + case MediaCodec::CB_CODEC_RELEASED: + { + if (!msg->findInt32("reason", &arg2)) { + arg2 = MediaCodec::REASON_UNKNOWN; + } + break; + } + default: TRESPASS(); } |