summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Günther <tom@toms-cafe.de>2009-07-10 23:08:46 +0200
committerThomas Günther <tom@toms-cafe.de>2009-07-10 23:08:46 +0200
commit892fa52b3e9ecaa7cd3e376863ad3275dc084aa7 (patch)
treef17e019f123f2510ca5a5fbb09701abd9c9d045c
parentb9c677fd8e41834b904eea34ba3f6d4cb6d30e60 (diff)
downloadvdr-plugin-text2skin-892fa52b3e9ecaa7cd3e376863ad3275dc084aa7.tar.gz
vdr-plugin-text2skin-892fa52b3e9ecaa7cd3e376863ad3275dc084aa7.tar.bz2
Fixed crash with FrontendHasLock and FrontendHasSignal (closes #147 -
thanks to a.g.prosat at tochka.ru for reporting this)
-rw-r--r--HISTORY2
-rw-r--r--common.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index bb4e3b3..5122126 100644
--- a/HISTORY
+++ b/HISTORY
@@ -75,6 +75,8 @@ ____-__-__: Version 1.3
- Removed backward compatibility to VDR < 1.6.0 (closes #137)
- Fixed compile error if ImageMagick has double as Quantum type (closes #140)
- Use pkg-config to find compilation flags, libs etc for FreeType and Imlib2.
+- Fixed crash with FrontendHasLock and FrontendHasSignal (closes #147 -
+ thanks to a.g.prosat at tochka.ru for reporting this)
2009-06-01: Version 1.2
diff --git a/common.c b/common.c
index a536ffd..5512bae 100644
--- a/common.c
+++ b/common.c
@@ -119,7 +119,7 @@ int GetFrontendSNR(void)
bool GetFrontendHasLock(void)
{
- uint16_t value = 0;
+ fe_status_t value = fe_status_t(0);
char *dev = NULL;
asprintf(&dev, FRONTEND_DEVICE, cDevice::ActualDevice()->CardIndex(), 0);
@@ -134,7 +134,7 @@ bool GetFrontendHasLock(void)
bool GetFrontendHasSignal(void)
{
- uint16_t value = 0;
+ fe_status_t value = fe_status_t(0);
char *dev = NULL;
asprintf(&dev, FRONTEND_DEVICE, cDevice::ActualDevice()->CardIndex(), 0);