Skip to content

Commit

Permalink
Merge pull request #17 from vdr-projects/fix-cDevice-Init
Browse files Browse the repository at this point in the history
Fix the initialization of the cDevice instances
  • Loading branch information
pbiering authored Jun 5, 2023
2 parents a50d7a4 + 96e8702 commit b062d52
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions mcli.c
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,13 @@ bool cPluginMcli::Initialize (void)
esyslog ("mcli::%s: PreInitMcli failed", __FUNCTION__);
return false;
};

ret = InitMcli();
if (!ret) {
esyslog ("mcli::%s: InitMcli failed", __FUNCTION__);
return false;
};

dsyslog ("mcli::%s: successful", __FUNCTION__);
return true;
}
Expand All @@ -1075,14 +1082,6 @@ bool cPluginMcli::Initialize (void)
bool cPluginMcli::Start (void)
{
isyslog("mcli version " MCLI_PLUGIN_VERSION " started");
#ifdef REELVDR
if (access("/dev/dvb/adapter0", F_OK) != 0) //TB: this line allows the client to be used with usb-sticks without conflicts
#endif
bool ret = InitMcli();
if (!ret) {
esyslog ("mcli::%s: InitMcli failed", __FUNCTION__);
return false;
};

cThread::Start ();
// Start any background activities the plugin shall perform.
Expand Down

0 comments on commit b062d52

Please sign in to comment.