Skip to content

Commit 12f32d6

Browse files
committed
Don't ask policy manager about invalid stream type
Change-Id: If50fbff9d34045d1398984da48da7e6428a74491
1 parent 7ef9743 commit 12f32d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/audioflinger/AudioFlinger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1619,7 +1619,7 @@ sp<AudioFlinger::PlaybackThread::Track> AudioFlinger::PlaybackThread::createTra
16191619
uint32_t strategy = AudioSystem::getStrategyForStream(streamType);
16201620
for (size_t i = 0; i < mTracks.size(); ++i) {
16211621
sp<Track> t = mTracks[i];
1622-
if (t != 0) {
1622+
if (t != 0 && !t->isOutputTrack()) {
16231623
uint32_t actual = AudioSystem::getStrategyForStream(t->streamType());
16241624
if (sessionId == t->sessionId() && strategy != actual) {
16251625
ALOGE("createTrack_l() mismatched strategy; expected %u but found %u",

0 commit comments

Comments
 (0)