summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2011-05-15 00:06:21 +0200
committermrwastl <mrwastl@users.sourceforge.net>2011-05-15 00:06:21 +0200
commit876ea90a3145c64c6b6b1e9109b8b8c9e3e11ce8 (patch)
tree3072bb305d62926e5be7610b4d77178f816abb30
parent1c1f7a0ffcc73fc5a18a55f0d278877d949a6105 (diff)
downloadvdr-plugin-graphlcd-876ea90a3145c64c6b6b1e9109b8b8c9e3e11ce8.tar.gz
vdr-plugin-graphlcd-876ea90a3145c64c6b6b1e9109b8b8c9e3e11ce8.tar.bz2
move service-active checks to first successful fetching of service data
-rw-r--r--service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/service.c b/service.c
index bc6da24..af919f4 100644
--- a/service.c
+++ b/service.c
@@ -222,8 +222,8 @@ bool cGraphLCDService::NeedsUpdate(uint64_t CurrentTime)
radioLastChange = CurrentTime;
p = cPluginManager::CallFirstService("RadioTextService-v1.0", NULL);
if (p) {
- radioActive = true;
if (cPluginManager::CallFirstService("RadioTextService-v1.0", &checkRTSData)) {
+ radioActive = true;
if (
(currRTSData.rds_info != checkRTSData.rds_info) ||
(currRTSData.rds_pty != checkRTSData.rds_pty) ||
@@ -251,8 +251,8 @@ bool cGraphLCDService::NeedsUpdate(uint64_t CurrentTime)
lcrLastChange = CurrentTime;
p = cPluginManager::CallFirstService("LcrService-v1.0", NULL);
if (p) {
- lcrActive = true;
if (cPluginManager::CallFirstService("LcrService-v1.0", &checkLcrData)) {
+ lcrActive = true;
if (
(strcmp(currLcrData.destination, checkLcrData.destination) != 0) ||
(strcmp(currLcrData.price, checkLcrData.price) != 0) ||
@@ -321,8 +321,8 @@ bool cGraphLCDService::NeedsUpdate(uint64_t CurrentTime)
#endif /* GRAPHLCD_SERVICE_FEMON_VALID */
if (femonVersionValid) {
- femonActive = true;
if (cPluginManager::CallFirstService("FemonService-v1.0", &checkFemonData)) {
+ femonActive = true;
if (
#if 0
(strcmp(currFemonData.fe_name, checkFemonData.fe_name) != 0) ||