summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-05-08 10:50:03 -0700
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2015-10-19 00:57:12 +0200
commit06aa44e37fc2be4320bbbcd3c7cd76c94d277bff (patch)
tree138305f22679def58b43318e6cd3f971e6ede32c /services/audioflinger/AudioFlinger.h
parent40cb8d32a95e5ff4afa835899fa7d9d860d614cb (diff)
downloadframeworks_av-06aa44e37fc2be4320bbbcd3c7cd76c94d277bff.zip
frameworks_av-06aa44e37fc2be4320bbbcd3c7cd76c94d277bff.tar.gz
frameworks_av-06aa44e37fc2be4320bbbcd3c7cd76c94d277bff.tar.bz2
DO NOT MERGE - audio flinger: fix fuzz test crash
Clear output stream pointer in duplicating thread when the main output to which it is attached is closed. Also do not forward master mute and volume commands to duplicating threads as this is not applicable. Also fix logic in AudioFlinger::primaryPlaybackThread_l() that could accidentally return a duplicating thread. This never happens because the primary thread is always first in the list. Bug: 20731946. Change-Id: Ic8869699836920351b23d09544c50a258d3fb585 (cherry picked from commit f6870aefc5e31d4220f3778c4e79ff34a61f48ad) Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
Diffstat (limited to 'services/audioflinger/AudioFlinger.h')
-rw-r--r--services/audioflinger/AudioFlinger.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h
index 5b718d7..c97ddd7 100644
--- a/services/audioflinger/AudioFlinger.h
+++ b/services/audioflinger/AudioFlinger.h
@@ -595,6 +595,8 @@ private:
// static externally-visible
type_t type() const { return mType; }
+ bool isDuplicating() const { return (mType == DUPLICATING); }
+
audio_io_handle_t id() const { return mId;}
// dynamic externally-visible