diff options
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) |