Skip to content

Commit a9821bd

Browse files
gkastenAndroid (Google) Code Review
authored andcommitted
Merge "Don't ask policy manager about invalid stream type"
2 parents 1e8b118 + 12f32d6 commit a9821bd

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
@@ -1621,7 +1621,7 @@ sp<AudioFlinger::PlaybackThread::Track> AudioFlinger::PlaybackThread::createTra
16211621
uint32_t strategy = AudioSystem::getStrategyForStream(streamType);
16221622
for (size_t i = 0; i < mTracks.size(); ++i) {
16231623
sp<Track> t = mTracks[i];
1624-
if (t != 0) {
1624+
if (t != 0 && !t->isOutputTrack()) {
16251625
uint32_t actual = AudioSystem::getStrategyForStream(t->streamType());
16261626
if (sessionId == t->sessionId() && strategy != actual) {
16271627
ALOGE("createTrack_l() mismatched strategy; expected %u but found %u",

0 commit comments

Comments
 (0)