From 52dfbee90cc3c4426428318e06a92774f5201198 Mon Sep 17 00:00:00 2001 From: Praveen Chavan Date: Wed, 15 Oct 2014 02:24:34 -0700 Subject: 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 --- include/media/stagefright/MediaCodec.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 { -- cgit v1.1