mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Makes X11 server arguments configurable.
This commit is contained in:
parent
b6154a988f
commit
943ee22aa5
@ -68,6 +68,7 @@ extern int ConfigAudioBufferTime; ///< config size ms of audio buffer
|
|||||||
static char ConfigStartSuspended; ///< flag to start in suspend mode
|
static char ConfigStartSuspended; ///< flag to start in suspend mode
|
||||||
static char ConfigFullscreen; ///< fullscreen modus
|
static char ConfigFullscreen; ///< fullscreen modus
|
||||||
static char ConfigStartX11Server; ///< flag start the x11 server
|
static char ConfigStartX11Server; ///< flag start the x11 server
|
||||||
|
static const char *X11ServerArguments; ///< default command arguments
|
||||||
static char ConfigStillDecoder; ///< hw/sw decoder for still picture
|
static char ConfigStillDecoder; ///< hw/sw decoder for still picture
|
||||||
|
|
||||||
static pthread_mutex_t SuspendLockMutex; ///< suspend lock mutex
|
static pthread_mutex_t SuspendLockMutex; ///< suspend lock mutex
|
||||||
@ -2376,6 +2377,7 @@ const char *CommandLineHelp(void)
|
|||||||
" -g geometry\tx11 window geometry wxh+x+y\n"
|
" -g geometry\tx11 window geometry wxh+x+y\n"
|
||||||
" -v device\tvideo device (va-api, vdpau, noop)\n"
|
" -v device\tvideo device (va-api, vdpau, noop)\n"
|
||||||
" -s\t\tstart in suspended mode\n" " -x\t\tstart x11 server\n"
|
" -s\t\tstart in suspended mode\n" " -x\t\tstart x11 server\n"
|
||||||
|
" -X args\tX11 server arguments (f.e. -nocursor)\n"
|
||||||
" -w workaround\tenable/disable workarounds\n"
|
" -w workaround\tenable/disable workarounds\n"
|
||||||
"\tno-hw-decoder\t\tdisable hw decoder, use software decoder only\n"
|
"\tno-hw-decoder\t\tdisable hw decoder, use software decoder only\n"
|
||||||
"\tno-mpeg-hw-decoder\tdisable hw decoder for mpeg only\n"
|
"\tno-mpeg-hw-decoder\tdisable hw decoder for mpeg only\n"
|
||||||
@ -2404,7 +2406,7 @@ int ProcessArgs(int argc, char *const argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
switch (getopt(argc, argv, "-a:c:d:fg:p:sv:w:xD")) {
|
switch (getopt(argc, argv, "-a:c:d:fg:p:sv:w:xDX:")) {
|
||||||
case 'a': // audio device for pcm
|
case 'a': // audio device for pcm
|
||||||
AudioSetDevice(optarg);
|
AudioSetDevice(optarg);
|
||||||
continue;
|
continue;
|
||||||
@ -2434,6 +2436,9 @@ int ProcessArgs(int argc, char *const argv[])
|
|||||||
case 'x': // x11 server
|
case 'x': // x11 server
|
||||||
ConfigStartX11Server = 1;
|
ConfigStartX11Server = 1;
|
||||||
continue;
|
continue;
|
||||||
|
case 'X': // x11 server arguments
|
||||||
|
X11ServerArguments = optarg;
|
||||||
|
continue;
|
||||||
case 's': // start in suspend mode
|
case 's': // start in suspend mode
|
||||||
ConfigStartSuspended = 1;
|
ConfigStartSuspended = 1;
|
||||||
continue;
|
continue;
|
||||||
@ -2496,7 +2501,6 @@ static const char *X11Server = "/usr/bin/X"; ///< default x11 server
|
|||||||
#else
|
#else
|
||||||
static const char *X11Server = LOCALBASE "/bin/X"; ///< default x11 server
|
static const char *X11Server = LOCALBASE "/bin/X"; ///< default x11 server
|
||||||
#endif
|
#endif
|
||||||
static const char *X11ServerArguments; ///< default command arguments
|
|
||||||
static pid_t X11ServerPid; ///< x11 server pid
|
static pid_t X11ServerPid; ///< x11 server pid
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user