mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Handle initial suspend mode like normal suspend.
This commit is contained in:
parent
6a28064dce
commit
0df8e8a5fc
@ -57,8 +57,8 @@ static char ConfigVdpauDecoder = 1; ///< use vdpau decoder, if possible
|
||||
#define ConfigVdpauDecoder 0 ///< no vdpau decoder configured
|
||||
#endif
|
||||
|
||||
static char ConfigFullscreen; ///< fullscreen modus
|
||||
static char ConfigStartSuspended; ///< flag to start in suspend mode
|
||||
static char ConfigFullscreen; ///< fullscreen modus
|
||||
static char ConfigStartX11Server; ///< flag start the x11 server
|
||||
|
||||
static pthread_mutex_t SuspendLockMutex; ///< suspend lock mutex
|
||||
@ -2328,7 +2328,7 @@ void SoftHdDeviceExit(void)
|
||||
/**
|
||||
** Prepare plugin.
|
||||
*/
|
||||
void Start(void)
|
||||
int Start(void)
|
||||
{
|
||||
if (ConfigStartX11Server) {
|
||||
StartXServer();
|
||||
@ -2356,7 +2356,9 @@ void Start(void)
|
||||
#ifdef USE_TS_AUDIO
|
||||
PesInit(PesDemuxAudio);
|
||||
#endif
|
||||
// FIXME: some good message here.
|
||||
Info(_("[softhddev] ready%s\n"), ConfigStartSuspended ? " suspended" : "");
|
||||
|
||||
return !ConfigStartSuspended;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -76,7 +76,7 @@ extern "C"
|
||||
/// C plugin exit + cleanup
|
||||
extern void SoftHdDeviceExit(void);
|
||||
/// C plugin start code
|
||||
extern void Start(void);
|
||||
extern int Start(void);
|
||||
/// C plugin stop code
|
||||
extern void Stop(void);
|
||||
/// C plugin main thread hook
|
||||
|
@ -1405,7 +1405,9 @@ bool cPluginSoftHdDevice::Start(void)
|
||||
}
|
||||
}
|
||||
|
||||
::Start();
|
||||
if (!::Start()) {
|
||||
SuspendMode = SUSPEND_NORMAL;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user