diff options
author | Eric Laurent <elaurent@google.com> | 2011-07-19 11:51:08 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2011-07-19 12:45:21 -0700 |
commit | 2006f1c32bbc3a55bc8c598ce8484c9b5673b011 (patch) | |
tree | 2ded465860dfe9855186c35605adf59d7b93c3e1 /audio | |
parent | 2fcb041993408de9bc11574f3777002e5ec040ba (diff) | |
download | device_samsung_tuna-2006f1c32bbc3a55bc8c598ce8484c9b5673b011.zip device_samsung_tuna-2006f1c32bbc3a55bc8c598ce8484c9b5673b011.tar.gz device_samsung_tuna-2006f1c32bbc3a55bc8c598ce8484c9b5673b011.tar.bz2 |
Fix issue 5048624: Native crash in video chat.
The problem is that the audio HAL returns a NULL string when
get_parameters() is called from AudioFlinger.
It should return return an empty string.
Change-Id: I99365b54eb5f3c3b6694cb3e122842dff1799bfd
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audio_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c index bf9680c..3da3cee 100644 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -873,7 +873,7 @@ static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs) static char * adev_get_parameters(const struct audio_hw_device *dev, const char *keys) { - return NULL; + return strdup(""); } static int adev_init_check(const struct audio_hw_device *dev) |