Remove MainThreadHook

This commit is contained in:
jojo61
2025-03-01 14:22:06 +01:00
parent ad99776be8
commit eb94d75584
3 changed files with 1 additions and 31 deletions

View File

@@ -61,7 +61,7 @@ extern void ToggleLUT();
/// vdr-plugin version number.
/// Makefile extracts the version number for generating the file name
/// for the distribution archive.
static const char *const VERSION = "3.29"
static const char *const VERSION = "3.30"
#ifdef GIT_REV
"-GIT" GIT_REV
#endif
@@ -2960,7 +2960,6 @@ class cPluginSoftHdDevice : public cPlugin {
virtual bool Start(void);
virtual void Stop(void);
virtual void Housekeeping(void);
virtual void MainThreadHook(void);
virtual const char *MainMenuEntry(void);
virtual cOsdObject *MainMenuAction(void);
virtual cMenuSetupPage *SetupMenu(void);
@@ -3129,21 +3128,6 @@ cOsdObject *cPluginSoftHdDevice::MainMenuAction(void) {
return new cSoftHdMenu("SoftHdDevice");
}
/**
** Called for every plugin once during every cycle of VDR's main program
** loop.
*/
void cPluginSoftHdDevice::MainThreadHook(void) {
// dsyslog("[softhddev]%s:\n", __FUNCTION__);
if (DoMakePrimary) {
dsyslog("[softhddev]%s: switching primary device to %d\n", __FUNCTION__, DoMakePrimary);
cDevice::SetPrimaryDevice(DoMakePrimary);
DoMakePrimary = 0;
}
::MainThreadHook();
}
/**
** Return our setup menu.

View File

@@ -3211,18 +3211,6 @@ void Housekeeping(void) {
}
}
/**
** Main thread hook, periodic called from main thread.
*/
void MainThreadHook(void) {
if (Usr1Signal) { // x11 server ready
// FIYME: x11 server keeps sending sigusr1 signals
signal(SIGUSR1, SIG_IGN); // ignore further signals
Usr1Signal = 0;
StartVideo();
VideoDisplayWakeup();
}
}
//////////////////////////////////////////////////////////////////////////////
// Suspend/Resume

View File

@@ -86,8 +86,6 @@ extern int Start(void);
extern void Stop(void);
/// C plugin house keeping
extern void Housekeeping(void);
/// C plugin main thread hook
extern void MainThreadHook(void);
/// Suspend plugin
extern void Suspend(int, int, int);