aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-01-04 21:27:48 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-01-04 21:27:48 +0000
commitf5101e5553f40b9c526d7b498e39cd30c9a6b708 (patch)
tree53c1fa221d0ee91e8bd3606b8882c61dade57bb2 /src
parentae4597427092c4c500c0e4b5138f8fd5d72cf941 (diff)
downloadqmmp-f5101e5553f40b9c526d7b498e39cd30c9a6b708.tar.gz
qmmp-f5101e5553f40b9c526d7b498e39cd30c9a6b708.tar.bz2
qmmp-f5101e5553f40b9c526d7b498e39cd30c9a6b708.zip
fixed window title updating when playing cue tracks (#1029)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9181 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
-rw-r--r--src/qmmp/qmmpaudioengine.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/qmmp/qmmpaudioengine.cpp b/src/qmmp/qmmpaudioengine.cpp
index b6be71845..c73daaa94 100644
--- a/src/qmmp/qmmpaudioengine.cpp
+++ b/src/qmmp/qmmpaudioengine.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2009-2019 by Ilya Kotov *
+ * Copyright (C) 2009-2020 by Ilya Kotov *
* forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -340,6 +340,7 @@ void QmmpAudioEngine::run()
m_trackInfo.clear();
qint64 len = 0;
int delay = 0;
+ QString nextURL;
if(m_decoders.isEmpty())
{
mutex()->unlock ();
@@ -376,7 +377,8 @@ void QmmpAudioEngine::run()
if(m_decoder->hasMetaData())
{
QMap<Qmmp::MetaData, QString> m = m_decoder->takeMetaData();
- TrackInfo info(m_inputs[m_decoder]->path());
+ TrackInfo info(nextURL.isEmpty() ? m_inputs[m_decoder]->path() : nextURL);
+ nextURL.clear();
info.setValues(m);
info.setValues(m_decoder->properties());
info.setValues(m_decoder->replayGainInfo());
@@ -423,6 +425,7 @@ void QmmpAudioEngine::run()
StateHandler::instance()->sendFinished();
StateHandler::instance()->dispatch(Qmmp::Stopped); //fake stop/start cycle
StateHandler::instance()->dispatch(Qmmp::Buffering);
+ nextURL = m_decoder->nextURL();
m_decoder->next();
StateHandler::instance()->dispatch(m_decoder->totalTime());
m_replayGain->setReplayGainInfo(m_decoder->replayGainInfo());