OSDN Git Service

Fix a segfault in AudioFlinger.
authorJohn Grossman <johngro@google.com>
Thu, 9 Feb 2012 19:28:36 +0000 (11:28 -0800)
committerJohn Grossman <johngro@google.com>
Thu, 16 Feb 2012 21:45:12 +0000 (13:45 -0800)
commitef7740be67a4d7b6b033ebed59c3d4a9c74a2c18
tree896b721ec2200ffe089800c7b367b92e88a59f2d
parentaf7d8189f91c45ab919a6c9ac386b268c8d91168
Fix a segfault in AudioFlinger.

Check the string returned by a HAL's implementation of get_parameters
for NULL before attempting to make use of it.  That way, we won't
bring down the mediaserver because of a poorly written HAL.

Change-Id: Ic99d7b004520d7d6347842a681c0595e889b68ea
Signed-off-by: John Grossman <johngro@google.com>
services/audioflinger/AudioFlinger.cpp