OSDN Git Service
(root)
/
android-x86
/
system-bt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4720ee
)
Post-merged fix on "resolved conflicts for merge of f993a9c4 to mnc-dr-dev-plus-aosp"
author
Miao Chou
<mcchou@google.com>
Wed, 29 Jul 2015 21:12:11 +0000
(14:12 -0700)
committer
Miao Chou
<mcchou@google.com>
Wed, 29 Jul 2015 21:39:05 +0000
(14:39 -0700)
Change-Id: Ia45ab5a0b5f4fac85db5a8c91980077b50b76513
audio_a2dp_hw/audio_a2dp_hw.c
patch
|
blob
|
history
diff --git
a/audio_a2dp_hw/audio_a2dp_hw.c
b/audio_a2dp_hw/audio_a2dp_hw.c
index
910e60f
..
4c8eca5
100644
(file)
--- a/
audio_a2dp_hw/audio_a2dp_hw.c
+++ b/
audio_a2dp_hw/audio_a2dp_hw.c
@@
-692,14
+692,14
@@
static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
INFO("state %d", out->common.state);
- pthread_mutex_lock(&out->common.lock);
-
hash_map_t *params = hash_map_utils_new_from_string_params(kvpairs);
-
int status = 0;
+
if (!params)
return status;
+ pthread_mutex_lock(&out->common.lock);
+
/* dump params */
hash_map_utils_dump_string_keys_string_values(params);