aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-06-23 20:53:40 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-06-23 20:53:40 +0000
commit48feab8e723002e9ea3d91aa3f090d7bf7fd5b6b (patch)
treebba66f66d51264bace473cb3408f7f9c4758ef79
parent3fdee1de316477cfa8cb68a9b1b4a712350e26f6 (diff)
downloadqmmp-48feab8e723002e9ea3d91aa3f090d7bf7fd5b6b.tar.gz
qmmp-48feab8e723002e9ea3d91aa3f090d7bf7fd5b6b.tar.bz2
qmmp-48feab8e723002e9ea3d91aa3f090d7bf7fd5b6b.zip
fixed remaining gcc warnings
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7254 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--src/plugins/Effect/crossfade/crossfadeplugin.cpp10
-rw-r--r--src/plugins/General/notifier/notifier.cpp4
2 files changed, 6 insertions, 8 deletions
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:
;
}
diff --git a/src/plugins/General/notifier/notifier.cpp b/src/plugins/General/notifier/notifier.cpp
index 2b7b2a6bf..3846223ae 100644
--- a/src/plugins/General/notifier/notifier.cpp
+++ b/src/plugins/General/notifier/notifier.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008-2016 by Ilya Kotov *
+ * Copyright (C) 2008-2017 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -101,8 +101,8 @@ void Notifier::setState(Qmmp::State state)
{
showMetaData();
m_isPaused = false;
- break;
}
+ break;
}
case Qmmp::Paused:
{