aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpplugin.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2020-01-16 23:46:05 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2020-01-16 23:46:05 +0800
commit63224bf7ac365b428e5115fc6ef6339a0b40c9fa (patch)
tree45d72410a3f19200945b304d4c20f03fc6cdc0f9 /qmidiplayer-desktop/qmpplugin.cpp
parentf7f2e9039cfd6c3d07a28137e321fa96b0267084 (diff)
downloadQMidiPlayer-63224bf7ac365b428e5115fc6ef6339a0b40c9fa.tar.xz
Seeking while paused no longer breaks playback completely.
"main.seek" callbacks are now invoked after the player has done seeking, fixing incorrect channel info in simple visualization after seeking. Use QT_STRINGIFY.
Diffstat (limited to 'qmidiplayer-desktop/qmpplugin.cpp')
-rw-r--r--qmidiplayer-desktop/qmpplugin.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/qmidiplayer-desktop/qmpplugin.cpp b/qmidiplayer-desktop/qmpplugin.cpp
index 19d14b5..08959cb 100644
--- a/qmidiplayer-desktop/qmpplugin.cpp
+++ b/qmidiplayer-desktop/qmpplugin.cpp
@@ -56,9 +56,7 @@ void qmpPluginManager::scanPlugins(const std::vector<std::string> &pp)
QDirIterator *dir;
std::vector<std::string> cpluginpaths(pp);
#ifdef NON_PORTABLE
-#define strify(s) #s
- QString pdir=QString(strify(INSTALL_PREFIX))+"/lib/qmidiplayer/";
-#undef strify
+ QString pdir=QString(QT_STRINGIFY(INSTALL_PREFIX))+"/lib/qmidiplayer/";
dir=new QDirIterator(pdir);
while(dir->hasNext())
{