From 2006f1c32bbc3a55bc8c598ce8484c9b5673b011 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Tue, 19 Jul 2011 11:51:08 -0700 Subject: 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 --- audio/audio_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio') 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) -- cgit v1.1