aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/mediaplayer.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-12-12 19:10:41 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-12-12 19:10:41 +0000
commitdd1617ae2862cea5f2c27a1c6d3e3859655a040f (patch)
tree739e9e6270aefe2ae35239ebb7fe72b6b8ad5fe2 /src/qmmpui/mediaplayer.cpp
parent8ca516bc875e88009821a243843d8c7ef986235e (diff)
downloadqmmp-dd1617ae2862cea5f2c27a1c6d3e3859655a040f.tar.gz
qmmp-dd1617ae2862cea5f2c27a1c6d3e3859655a040f.tar.bz2
qmmp-dd1617ae2862cea5f2c27a1c6d3e3859655a040f.zip
improved code style
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9585 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/mediaplayer.cpp')
-rw-r--r--src/qmmpui/mediaplayer.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/qmmpui/mediaplayer.cpp b/src/qmmpui/mediaplayer.cpp
index d6f2d9975..a5f223102 100644
--- a/src/qmmpui/mediaplayer.cpp
+++ b/src/qmmpui/mediaplayer.cpp
@@ -35,9 +35,9 @@ MediaPlayer::MediaPlayer(QObject *parent)
if(m_instance)
qFatal("StateHandler: only one instance is allowed");
m_instance = this;
- m_pl_manager = nullptr;
- m_core = nullptr;
- m_skips = 0;
+ m_core = new SoundCore(this);
+ m_settings = new QmmpUiSettings(this);
+ m_pl_manager = new PlayListManager(this);
m_finishTimer = new QTimer(this);
m_finishTimer->setSingleShot(true);
m_finishTimer->setInterval(500);
@@ -46,9 +46,7 @@ MediaPlayer::MediaPlayer(QObject *parent)
QString locale = Qmmp::systemLanguageID();
translator->load(QString(":/libqmmpui_") + locale);
qApp->installTranslator(translator);
- m_core = new SoundCore(this);
- m_settings = new QmmpUiSettings(this);
- m_pl_manager = new PlayListManager(this);
+
connect(m_core, SIGNAL(nextTrackRequest()), SLOT(updateNextUrl()));
connect(m_core, SIGNAL(finished()), SLOT(playNext()));
connect(m_core, SIGNAL(stateChanged(Qmmp::State)), SLOT(processState(Qmmp::State)));