diff options
| author | Andreas Mair <amair.sob@googlemail.com> | 2011-06-15 10:12:29 +0200 |
|---|---|---|
| committer | Andreas Mair <amair.sob@googlemail.com> | 2011-06-15 10:12:29 +0200 |
| commit | 5c870129a63e2e41e969862bad49307c226a2aef (patch) | |
| tree | 8197f8c28bfe9fd7dd3153bcfd81aeded296f0ae | |
| parent | c23ae8c348df5e64a67a3c30783380c2ab1eed06 (diff) | |
| download | vdr-plugin-skinenigmang-5c870129a63e2e41e969862bad49307c226a2aef.tar.gz vdr-plugin-skinenigmang-5c870129a63e2e41e969862bad49307c226a2aef.tar.bz2 | |
Handle case if curent event starts in the future in channel info OSD (Fixes #649)
| -rw-r--r-- | enigma.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -848,7 +848,7 @@ void cSkinEnigmaDisplayChannel::SetEvents(const cEvent *Present, int total = e->Duration(); snprintf(sLen, sizeof(sLen), "%d'", total / 60); - int now = (time(NULL) - e->StartTime()); + int now = std::max((int)(time(NULL) - e->StartTime()), 0); if ((now < total) && ((now / 60) > 0)) { switch (EnigmaConfig.showRemaining) { case 0: |
