Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e02448b3 authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

volume listener: provide more debugging info when effect desc is null

Since this is some abnormal condition, dump the volume effects list
regardless of the 'dumping_enable' flag state.

Bug: 63780779
Test: more debug info is provided when the error condition encountered
Change-Id: I4523414cbe4a9da1bcea6e181e115053cdcee9a9
parent 700923e3
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -770,9 +770,7 @@ static int vol_prc_lib_release(effect_handle_t handle)
    if (recv_contex->desc == NULL) {
        ALOGE("%s: Got NULL descriptor, session %u, stream type %u",
                __func__, session_id, stream_type);
        if (dumping_enabled) {
        dump_list_l();
        }
        pthread_mutex_unlock(&vol_listner_init_lock);
        return status;
    }