1
0
mirror of https://github.com/rofafor/vdr-plugin-femon.git synced 2023-10-10 13:36:53 +02:00

Fixed a crash in femon service (Thanks to Wolfgang Astleitner).

This commit is contained in:
Rolf Ahrenberg 2010-05-31 16:55:19 +03:00
parent a21ed98163
commit 3235c67256
2 changed files with 3 additions and 0 deletions

View File

@ -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).

View File

@ -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);