diff options
author | Glenn Kasten <gkasten@google.com> | 2012-08-13 11:39:04 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-08-13 11:39:04 -0700 |
commit | 0319e9e31cb7b0033a3026b0305b78e2d48c6ec8 (patch) | |
tree | 4fe3b2ab60f96691faaaf50f163c92946954e6de /services | |
parent | b2f2d1644b9d1a823fc3b78a59893652b080b35d (diff) | |
parent | 0dbb356050d0db9e0043dd43045c1864a933332b (diff) | |
download | frameworks_av-0319e9e31cb7b0033a3026b0305b78e2d48c6ec8.zip frameworks_av-0319e9e31cb7b0033a3026b0305b78e2d48c6ec8.tar.gz frameworks_av-0319e9e31cb7b0033a3026b0305b78e2d48c6ec8.tar.bz2 |
am 0dbb3560: Simplify AudioFlinger::PlaybackThread::isValidSyncEvent()
* commit '0dbb356050d0db9e0043dd43045c1864a933332b':
Simplify AudioFlinger::PlaybackThread::isValidSyncEvent()
Diffstat (limited to 'services')
-rw-r--r-- | services/audioflinger/AudioFlinger.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index 8bbfa7a..a312e48 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -2189,13 +2189,7 @@ status_t AudioFlinger::PlaybackThread::setSyncEvent(const sp<SyncEvent>& event) bool AudioFlinger::PlaybackThread::isValidSyncEvent(const sp<SyncEvent>& event) { - switch (event->type()) { - case AudioSystem::SYNC_EVENT_PRESENTATION_COMPLETE: - return true; - default: - break; - } - return false; + return event->type() == AudioSystem::SYNC_EVENT_PRESENTATION_COMPLETE; } void AudioFlinger::PlaybackThread::threadLoop_removeTracks(const Vector< sp<Track> >& tracksToRemove) |