summaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-07-03 15:48:44 +0200
committerJohns <johns98@gmx.net>2012-07-03 15:48:44 +0200
commite6ce7832bac42cd35119bfd06343fb4042c96939 (patch)
treef719eb08431c724013eead4b2a2a23a05b27fe36 /video.c
parent696bb8e934bc8bd9c73df4f954d74e926dbeeadb (diff)
downloadvdr-plugin-softhddevice-e6ce7832bac42cd35119bfd06343fb4042c96939.tar.gz
vdr-plugin-softhddevice-e6ce7832bac42cd35119bfd06343fb4042c96939.tar.bz2
Add commandline support to disable hardware decoder.
Diffstat (limited to 'video.c')
-rw-r--r--video.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/video.c b/video.c
index 48543de..62440d1 100644
--- a/video.c
+++ b/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;
}