mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Add commandline support to disable hardware decoder.
This commit is contained in:
parent
696bb8e934
commit
e6ce7832ba
@ -2,6 +2,7 @@ User johns
|
||||
Date:
|
||||
|
||||
Release Version 0.5.1
|
||||
Add commandline support to disable hardware decoder.
|
||||
Display frame statistics in plugin menu.
|
||||
Fix bug: 100% CPU use during playback.
|
||||
Fix bug: audio use 100% CPU during pause.
|
||||
|
@ -2352,7 +2352,9 @@ int ProcessArgs(int argc, char *const argv[])
|
||||
continue;
|
||||
case 'w': // workarounds
|
||||
if (!strcasecmp("no-hw-decoder", optarg)) {
|
||||
VideoHardwareDecoder = 0;
|
||||
} else if (!strcasecmp("no-mpeg-hw-decoder", optarg)) {
|
||||
VideoHardwareDecoder = 1;
|
||||
} else if (!strcasecmp("alsa-driver-broken", optarg)) {
|
||||
AudioAlsaDriverBroken = 1;
|
||||
} else if (!strcasecmp("ignore-repeat-pict", optarg)) {
|
||||
|
3
video.c
3
video.c
@ -298,7 +298,7 @@ static const VideoModule NoopModule; ///< forward definition of noop module
|
||||
/// selected video module
|
||||
static const VideoModule *VideoUsedModule = &NoopModule;
|
||||
|
||||
static char VideoHardwareDecoder; ///< flag use hardware decoder
|
||||
char VideoHardwareDecoder = -1; ///< flag use hardware decoder
|
||||
|
||||
static char VideoSurfaceModesChanged; ///< flag surface modes changed
|
||||
|
||||
@ -10380,7 +10380,6 @@ void VideoInit(const char *display_name)
|
||||
|
||||
found:
|
||||
// FIXME: make it configurable from gui
|
||||
VideoHardwareDecoder = -1;
|
||||
if (getenv("NO_MPEG_HW")) {
|
||||
VideoHardwareDecoder = 1;
|
||||
}
|
||||
|
1
video.h
1
video.h
@ -34,6 +34,7 @@ typedef struct _video_hw_decoder_ VideoHwDecoder;
|
||||
// Variables
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
extern char VideoHardwareDecoder; ///< flag use hardware decoder
|
||||
extern char VideoIgnoreRepeatPict; ///< disable repeat pict warning
|
||||
extern int VideoAudioDelay; ///< audio/video delay
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user