Fixed a crash in femon service (Thanks to Wolfgang Astleitner).
This commit is contained in:
parent
a21ed98163
commit
3235c67256
1
HISTORY
1
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).
|
||||
|
|
2
femon.c
2
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);
|
||||
|
|
Loading…
Reference in New Issue