From 639dbee79140956c43926344c23af765f6e0c9a5 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Wed, 7 Mar 2012 12:26:34 -0800 Subject: [PATCH] Don't ask policy manager about invalid stream type Change-Id: If50fbff9d34045d1398984da48da7e6428a74491 --- services/audioflinger/AudioFlinger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index 032406e9cf..ae868fb49f 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -1619,7 +1619,7 @@ sp AudioFlinger::PlaybackThread::createTra uint32_t strategy = AudioSystem::getStrategyForStream(streamType); for (size_t i = 0; i < mTracks.size(); ++i) { sp t = mTracks[i]; - if (t != 0) { + if (t != 0 && !t->isOutputTrack()) { uint32_t actual = AudioSystem::getStrategyForStream(t->streamType()); if (sessionId == t->sessionId() && strategy != actual) { ALOGE("createTrack_l() mismatched strategy; expected %u but found %u", -- 2.11.0