OSDN Git Service

MediaCodecList: handle errors gracefully
authorLajos Molnar <lajos@google.com>
Mon, 11 Aug 2014 23:46:15 +0000 (16:46 -0700)
committerLajos Molnar <lajos@google.com>
Tue, 12 Aug 2014 16:29:29 +0000 (09:29 -0700)
commit6ff58f04f78886b07c72c0118eb71a78d08f5651
tree99652bd3f5349e5cd8c55c261e7e06b65fc06ea1
parente7a1737c92cf2e84754ffbc52cfec8edeffcbc75
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
include/media/MediaCodecInfo.h
media/libmedia/MediaCodecInfo.cpp
media/libstagefright/MediaCodecList.cpp