summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);