aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qmidiplayer-desktop/qmpplugin.cpp')
-rw-r--r--qmidiplayer-desktop/qmpplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmidiplayer-desktop/qmpplugin.cpp b/qmidiplayer-desktop/qmpplugin.cpp
index 7efd345..eb374d6 100644
--- a/qmidiplayer-desktop/qmpplugin.cpp
+++ b/qmidiplayer-desktop/qmpplugin.cpp
@@ -180,7 +180,7 @@ double qmpPluginAPIImpl::getRealTempo()
}
uint32_t qmpPluginAPIImpl::getTimeSig()
{
- int n, d = 0, t;
+ int n, d = 0, t = 1;
qmw &&qmw->getPlayer() ? qmw->getPlayer()->getCurrentTimeSignature(&n, &t) : void(0);
for (; t >>= 1; ++d);
return n << 8 | d;