diff options
author | Chris Xiong <chirs241097@gmail.com> | 2020-05-01 17:25:08 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2020-05-01 17:25:08 +0800 |
commit | afeb558e50ad8d80f044439d39193d1cbc566580 (patch) | |
tree | b5a692ee2994ced73a3d5832857db1a5e4597b88 /visualization/renderer/qmpvisrendercore.cpp | |
parent | 893bec26cd1bc83fd85bb7dfdfd6225d9f6ee5b5 (diff) | |
download | QMidiPlayer-afeb558e50ad8d80f044439d39193d1cbc566580.tar.xz |
Fixed visualization viewport randomly reverting to default.
Fixed unexpected pitch wheel activity in rendered video.
Remove type checking in the option syntax.
Diffstat (limited to 'visualization/renderer/qmpvisrendercore.cpp')
-rw-r--r-- | visualization/renderer/qmpvisrendercore.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/visualization/renderer/qmpvisrendercore.cpp b/visualization/renderer/qmpvisrendercore.cpp index a2733a7..d4acea9 100644 --- a/visualization/renderer/qmpvisrendercore.cpp +++ b/visualization/renderer/qmpvisrendercore.cpp @@ -36,6 +36,7 @@ bool qmpVisRenderCore::loadVisualizationLibrary() vp=getintf(api); switchmode(&qmpVisRenderCore::framefunc,!clp->isSet("show-window")); vp->init(); + resetcb(nullptr,nullptr); return true; } @@ -53,7 +54,10 @@ void qmpVisRenderCore::loadSettings() { int sp=o.indexOf('='); if(!~sp) + { qDebug("invalid option pair: %s",o.toStdString().c_str()); + continue; + } QString key=o.left(sp); QString value=o.mid(sp+1); msettings->setopt(key.toStdString(),value.toStdString()); |