diff options
author | chriszero <zerov83@gmail.com> | 2015-06-19 20:51:49 +0200 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-06-19 20:51:49 +0200 |
commit | 7688256dac7261f2461776fadbcd3185a2a42b4f (patch) | |
tree | 4baa0bd2e2b095c18ee3346d9305b497e584faaf | |
parent | e778dab14f9f1b935aa03d0237bd4958485d3e02 (diff) | |
download | vdr-plugin-plex-7688256dac7261f2461776fadbcd3185a2a42b4f.tar.gz vdr-plugin-plex-7688256dac7261f2461776fadbcd3185a2a42b4f.tar.bz2 |
Sorry, last commit was buggy.
-rw-r--r-- | PVideo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -242,7 +242,7 @@ void Video::AddTokens(std::shared_ptr<skindesignerapi::cOsdElement> grid, bool c grid->AddStringToken("studio", m_sStudio); grid->AddIntToken("viewCount", m_iViewCount); grid->AddIntToken("viewoffset", m_lViewoffset/1000/60); - if(m_iDuration < 0) // avoid division by zero + if(m_iDuration > 0) // avoid division by zero grid->AddIntToken("viewoffsetpercent", 100.0 / m_iDuration * m_lViewoffset); else grid->AddIntToken("viewoffsetpercent", 0); |