diff options
| author | Andy Hung <hunga@google.com> | 2015-09-09 00:51:47 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-09-09 00:51:47 +0000 |
| commit | 2facd29ca7a04fcfe01b83cf044d552d6b728dd7 (patch) | |
| tree | b3701c95e5da6cb71d681512c5b3dbbe5ef4aea3 | |
| parent | 5a95ff689b4a1827488d576f02b6292e4318abb2 (diff) | |
| parent | 591ef60fb95d863cb8f3a3923d59bc36c8cd4b8c (diff) | |
| download | android_hardware_qcom_audio-2facd29ca7a04fcfe01b83cf044d552d6b728dd7.tar.gz android_hardware_qcom_audio-2facd29ca7a04fcfe01b83cf044d552d6b728dd7.tar.bz2 android_hardware_qcom_audio-2facd29ca7a04fcfe01b83cf044d552d6b728dd7.zip | |
Merge "volume_listener: fix release" into mnc-dr-dev
| -rw-r--r-- | post_proc/volume_listener.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/post_proc/volume_listener.c b/post_proc/volume_listener.c index 2759bea6..62acd6f5 100644 --- a/post_proc/volume_listener.c +++ b/post_proc/volume_listener.c @@ -664,7 +664,7 @@ static int vol_prc_lib_create(const effect_uuid_t *uuid, static int vol_prc_lib_release(effect_handle_t handle) { - struct listnode *node = NULL; + struct listnode *node, *temp_node_next; vol_listener_context_t *context = NULL; vol_listener_context_t *recv_contex = (vol_listener_context_t *)handle; int status = -1; @@ -674,7 +674,7 @@ static int vol_prc_lib_release(effect_handle_t handle) pthread_mutex_lock(&vol_listner_init_lock); // check if the handle/context provided is valid - list_for_each(node, &vol_effect_list) { + list_for_each_safe(node, temp_node_next, &vol_effect_list) { context = node_to_item(node, struct vol_listener_context_s, effect_list_node); if ((memcmp(&(context->desc->uuid), &(recv_contex->desc->uuid), sizeof(effect_uuid_t)) == 0) && (context->session_id == recv_contex->session_id) |
