From 892fa52b3e9ecaa7cd3e376863ad3275dc084aa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?= Date: Fri, 10 Jul 2009 23:08:46 +0200 Subject: Fixed crash with FrontendHasLock and FrontendHasSignal (closes #147 - thanks to a.g.prosat at tochka.ru for reporting this) --- HISTORY | 2 ++ common.c | 4 ++-- 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); -- cgit v1.2.3