mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2025-12-26 23:16:46 +01:00
Remove MainThreadHook
This commit is contained in:
@@ -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.
|
||||
|
||||
12
softhddev.c
12
softhddev.c
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user