summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPraveen Chavan <pchavan@codeaurora.org>2014-10-15 02:24:34 -0700
committerLajos Molnar <lajos@google.com>2014-10-21 11:15:08 -0700
commit52dfbee90cc3c4426428318e06a92774f5201198 (patch)
tree3721c673f64eefe2bab9a7065ccc17a6f5109800 /include
parent7de5ac1f067ec61f7ea424d5534cfd40987b11fa (diff)
downloadframeworks_av-52dfbee90cc3c4426428318e06a92774f5201198.zip
frameworks_av-52dfbee90cc3c4426428318e06a92774f5201198.tar.gz
frameworks_av-52dfbee90cc3c4426428318e06a92774f5201198.tar.bz2
Stagefright: MediaCodec: shutdown allocated codec on error
If MediaCodec sees a fatal error and transitions to UNINITIALIZED state, The codec may still be alive (with an exception of 'mediaserver-died' error). Handle Shutdown of the codec during release(). Bug: 17784012 Bug: 18033275 Change-Id: I891e036499d9b440a57f77fb735a5ba4da9a6e43
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/MediaCodec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/stagefright/MediaCodec.h b/include/media/stagefright/MediaCodec.h
index bca78b9..54a4e8b 100644
--- a/include/media/stagefright/MediaCodec.h
+++ b/include/media/stagefright/MediaCodec.h
@@ -205,6 +205,7 @@ private:
kFlagIsEncoder = 256,
kFlagGatherCodecSpecificData = 512,
kFlagIsAsync = 1024,
+ kFlagIsComponentAllocated = 2048,
};
struct BufferInfo {