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, 9 Feb 2012 19:31:06 +0000 (11:31 -0800)
commit45e9efb9f75f85be6b8b03c130bc5c9e1080f7a6
tree4d2670e2b2b35cc3fdc76ae2a59ee0d02a6f4058
parentdf49efa896688d6cd1e9d1f193d5f5c65b8974f8
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: I45f0fd3de003151f98acf32c36c42f58d053f3a0
services/audioflinger/AudioFlinger.cpp