From 48feab8e723002e9ea3d91aa3f090d7bf7fd5b6b Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 23 Jun 2017 20:53:40 +0000 Subject: fixed remaining gcc warnings git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7254 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Effect/crossfade/crossfadeplugin.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/plugins/Effect/crossfade/crossfadeplugin.cpp') diff --git a/src/plugins/Effect/crossfade/crossfadeplugin.cpp b/src/plugins/Effect/crossfade/crossfadeplugin.cpp index c7059cd6e..22e5c3fdc 100644 --- a/src/plugins/Effect/crossfade/crossfadeplugin.cpp +++ b/src/plugins/Effect/crossfade/crossfadeplugin.cpp @@ -53,13 +53,12 @@ void CrossfadePlugin::applyEffect(Buffer *b) StateHandler::instance()->sendNextTrackRequest(); m_state = CHECKING; } - return; + break; case CHECKING: //next source has been received and current engine will be used to play it if(SoundCore::instance()->nextTrackAccepted()) m_state = PREPARING; - else - return; + break; case PREPARING: if(m_core->totalTime() && (m_core->totalTime() - m_handler->elapsed() < m_overlap)) { @@ -71,12 +70,10 @@ void CrossfadePlugin::applyEffect(Buffer *b) memcpy(m_buffer + m_buffer_at, b->data, b->samples * sizeof(float)); m_buffer_at += b->samples; b->samples = 0; - return; } else if(m_buffer_at > 0) m_state = PROCESSING; - else - return; + break; case PROCESSING: if (m_buffer_at > 0) { @@ -88,6 +85,7 @@ void CrossfadePlugin::applyEffect(Buffer *b) } else m_state = WAITING; + break; default: ; } -- cgit v1.2.3-13-gbd6f