From 3235c67256b1d60e7e589d75123a8a086aa7eacf Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Mon, 31 May 2010 16:55:19 +0300 Subject: [PATCH] Fixed a crash in femon service (Thanks to Wolfgang Astleitner). --- HISTORY | 1 + femon.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/HISTORY b/HISTORY index 4350b3f..7a45890 100644 --- a/HISTORY +++ b/HISTORY @@ -400,3 +400,4 @@ VDR Plugin 'femon' Revision History - Fixed device switching. - Updated Italian translation (Thanks to Diego Pierotto). +- Fixed a crash in femon service (Thanks to Wolfgang Astleitner). diff --git a/femon.c b/femon.c index 335f10c..6b8ad54 100644 --- a/femon.c +++ b/femon.c @@ -133,6 +133,8 @@ bool cPluginFemon::Service(const char *Id, void *Data) if (strcmp(Id,"FemonService-v1.0") == 0) { if (Data) { FemonService_v1_0 *data = (FemonService_v1_0*)Data; + if (!cDevice::ActualDevice()) + return false; int ndx = cDevice::ActualDevice()->CardIndex(); data->fe_name = getFrontendName(ndx); data->fe_status = getFrontendStatus(ndx);