summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2014-08-11 16:46:15 -0700
committerLajos Molnar <lajos@google.com>2014-08-12 09:29:29 -0700
commit6ff58f04f78886b07c72c0118eb71a78d08f5651 (patch)
tree99652bd3f5349e5cd8c55c261e7e06b65fc06ea1 /include
parente7a1737c92cf2e84754ffbc52cfec8edeffcbc75 (diff)
downloadframeworks_av-6ff58f04f78886b07c72c0118eb71a78d08f5651.zip
frameworks_av-6ff58f04f78886b07c72c0118eb71a78d08f5651.tar.gz
frameworks_av-6ff58f04f78886b07c72c0118eb71a78d08f5651.tar.bz2
MediaCodecList: handle errors gracefully
Handle missing OMX codecs, and codecs that do not load. Fix NULL dereference when initializing codec with no type. Bug: 16907578 Bug: 16905025 Change-Id: I5d103db36ebb029d1aab03222bf6e9324beb1566
Diffstat (limited to 'include')
-rw-r--r--include/media/MediaCodecInfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/MediaCodecInfo.h b/include/media/MediaCodecInfo.h
index 29315ce..fc340c8 100644
--- a/include/media/MediaCodecInfo.h
+++ b/include/media/MediaCodecInfo.h
@@ -107,6 +107,7 @@ private:
status_t initializeCapabilities(const CodecCapabilities &caps);
void addDetail(const AString &key, const AString &value);
void addFeature(const AString &key, int32_t value);
+ void removeMime(const char *mime);
void complete();
DISALLOW_EVIL_CONSTRUCTORS(MediaCodecInfo);