diff options
author | louis <louis.braun@gmx.de> | 2013-07-12 16:00:18 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-07-12 16:00:18 +0200 |
commit | 6a6e477b7af85f7e67859333a6d3528ad33ebe85 (patch) | |
tree | f3c5d00a183bdc86cef97268a72e61cb0fdcd423 /dummygrid.c | |
parent | 4a45965fb39f509617cd9e25fa60b9863d7551b6 (diff) | |
download | vdr-plugin-tvguide-6a6e477b7af85f7e67859333a6d3528ad33ebe85.tar.gz vdr-plugin-tvguide-6a6e477b7af85f7e67859333a6d3528ad33ebe85.tar.bz2 |
Fixed possible crash
Diffstat (limited to 'dummygrid.c')
-rw-r--r-- | dummygrid.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dummygrid.c b/dummygrid.c index 42025e0..6131e13 100644 --- a/dummygrid.c +++ b/dummygrid.c @@ -11,6 +11,13 @@ cDummyGrid::cDummyGrid(cChannelColumn *c, time_t start, time_t end) : cGrid(c) { cDummyGrid::~cDummyGrid(void) { } +time_t cDummyGrid::Duration(void) { + //max Duration 5h + if (end - start > 18000) + return 18000; + return (end - start); +}; + void cDummyGrid::SetViewportHeight() { int viewportHeightOld = viewportHeight; viewportHeight = Duration() / 60 * tvguideConfig.minutePixel; |