Skip to content

Commit b062d52

Browse files
authored
Merge pull request #17 from vdr-projects/fix-cDevice-Init
Fix the initialization of the cDevice instances
2 parents a50d7a4 + 96e8702 commit b062d52

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

mcli.c

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,13 @@ bool cPluginMcli::Initialize (void)
10671067
esyslog ("mcli::%s: PreInitMcli failed", __FUNCTION__);
10681068
return false;
10691069
};
1070+
1071+
ret = InitMcli();
1072+
if (!ret) {
1073+
esyslog ("mcli::%s: InitMcli failed", __FUNCTION__);
1074+
return false;
1075+
};
1076+
10701077
dsyslog ("mcli::%s: successful", __FUNCTION__);
10711078
return true;
10721079
}
@@ -1075,14 +1082,6 @@ bool cPluginMcli::Initialize (void)
10751082
bool cPluginMcli::Start (void)
10761083
{
10771084
isyslog("mcli version " MCLI_PLUGIN_VERSION " started");
1078-
#ifdef REELVDR
1079-
if (access("/dev/dvb/adapter0", F_OK) != 0) //TB: this line allows the client to be used with usb-sticks without conflicts
1080-
#endif
1081-
bool ret = InitMcli();
1082-
if (!ret) {
1083-
esyslog ("mcli::%s: InitMcli failed", __FUNCTION__);
1084-
return false;
1085-
};
10861085

10871086
cThread::Start ();
10881087
// Start any background activities the plugin shall perform.

0 commit comments

Comments
 (0)