commit | be0ee69ae88f9082eab0083cbf7b8a0676b5f673 | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Thu Feb 02 00:32:41 2017 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Feb 02 00:32:42 2017 +0000 |
tree | 0445ce01d6b2afe5835af8e565152a01bf16c7ca | |
parent | ec0a5ac45728bc610e0266ec1a21d65ac340562a [diff] | |
parent | 587b8dfdbc3d3b1dd9ffc1996b9a07cd9b284833 [diff] |
Merge "audio: fix audioSession null check"
diff --git a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp index eb61ec4..54c406c 100644 --- a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp +++ b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
@@ -1932,7 +1932,7 @@ ALOG_ASSERT(inputDesc != 0); sp<AudioSession> audioSession = inputDesc->getAudioSession(session); - if (index < 0) { + if (audioSession == 0) { ALOGW("releaseInput() unknown session %d on input %d", session, input); return; }