diff options
| author | louis <louis.braun@gmx.de> | 2015-03-22 08:33:51 +0100 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2015-03-22 08:33:51 +0100 |
| commit | 03f3789ee9c02aac7b5c326d7abd02d271bbcddd (patch) | |
| tree | 1598590b7fb0c0a21695ae78f91aeac8e56b424f | |
| parent | 9c93fbc0726ff54f2070837ac821ef3d258dfd30 (diff) | |
| download | vdr-plugin-skindesigner-03f3789ee9c02aac7b5c326d7abd02d271bbcddd.tar.gz vdr-plugin-skindesigner-03f3789ee9c02aac7b5c326d7abd02d271bbcddd.tar.bz2 | |
fixed crash if number of dvb devices changes
| -rw-r--r-- | views/viewhelpers.c | 2 | ||||
| -rw-r--r-- | views/viewhelpers.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/views/viewhelpers.c b/views/viewhelpers.c index e10798f..c9423d4 100644 --- a/views/viewhelpers.c +++ b/views/viewhelpers.c @@ -6,6 +6,7 @@ #include "viewhelpers.h" cViewHelpers::cViewHelpers(void) { + numDevices = 0; devicesInit = false; lastSecond = -1; lastMinute = -1; @@ -36,7 +37,6 @@ bool cViewHelpers::SetDevices(bool initial, map<string,int> *intTokens, vector<m #ifdef DOPROFILE cStopWatch watch("SetDevices"); #endif - int numDevices = cDevice::NumDevices(); if (!initial) { //check if drawing is necessary bool changed = false; diff --git a/views/viewhelpers.h b/views/viewhelpers.h index 8e49554..53209b4 100644 --- a/views/viewhelpers.h +++ b/views/viewhelpers.h @@ -3,6 +3,7 @@ class cViewHelpers { private: + int numDevices; bool devicesInit; int* lastSignalStrength; int* lastSignalQuality; |
