summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-06-19 20:51:49 +0200
committerchriszero <zerov83@gmail.com>2015-06-19 20:51:49 +0200
commit7688256dac7261f2461776fadbcd3185a2a42b4f (patch)
tree4baa0bd2e2b095c18ee3346d9305b497e584faaf
parente778dab14f9f1b935aa03d0237bd4958485d3e02 (diff)
downloadvdr-plugin-plex-7688256dac7261f2461776fadbcd3185a2a42b4f.tar.gz
vdr-plugin-plex-7688256dac7261f2461776fadbcd3185a2a42b4f.tar.bz2
Sorry, last commit was buggy.
-rw-r--r--PVideo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/PVideo.cpp b/PVideo.cpp
index 504a678..dde09f9 100644
--- a/PVideo.cpp
+++ b/PVideo.cpp
@@ -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);