summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2015-03-10 10:20:53 +0100
committerJohns <johns98@gmx.net>2015-03-10 10:20:53 +0100
commit915dff8714f10732b2e23cf43f0fc2860ac5cb1d (patch)
treedaf944f875973674e92cb955746511df5c0e04e8
parentca0181b1b12af971a892418f8c6ac3ec90bb97a0 (diff)
downloadvdr-plugin-softhddevice-915dff8714f10732b2e23cf43f0fc2860ac5cb1d.tar.gz
vdr-plugin-softhddevice-915dff8714f10732b2e23cf43f0fc2860ac5cb1d.tar.bz2
Fix bug: need signed char, if compiler has unsigned chars.
-rw-r--r--ChangeLog1
-rw-r--r--softhddev.c2
-rw-r--r--softhddevice.cpp2
-rw-r--r--video.c2
-rw-r--r--video.h2
5 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 0f1e2b8..63f0c26 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
User johns
Date:
+ Fix bug: need signed char, if compiler has unsigned chars.
Try smaller audio puffer, if default size fails.
Fix bug: center cut-out didn't use cut off pixels.
Fix bug #2058: support for Make.plgcfg.
diff --git a/softhddev.c b/softhddev.c
index 79c5e31..5afe3b5 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -89,7 +89,7 @@ static char VdpauDecoder = 1; ///< vdpau decoder used
extern int ConfigAudioBufferTime; ///< config size ms of audio buffer
extern int ConfigVideoClearOnSwitch; //< clear decoder on channel switch
char ConfigStartX11Server; ///< flag start the x11 server
-static char ConfigStartSuspended; ///< flag to start in suspend mode
+static signed char ConfigStartSuspended; ///< flag to start in suspend mode
static char ConfigFullscreen; ///< fullscreen modus
static const char *X11ServerArguments; ///< default command arguments
static char ConfigStillDecoder; ///< hw/sw decoder for still picture
diff --git a/softhddevice.cpp b/softhddevice.cpp
index 310855b..e933955 100644
--- a/softhddevice.cpp
+++ b/softhddevice.cpp
@@ -171,7 +171,7 @@ static volatile int DoMakePrimary; ///< switch primary device to this
#define NOT_SUSPENDED 0 ///< not suspend mode
#define SUSPEND_NORMAL 1 ///< normal suspend mode
#define SUSPEND_DETACHED 2 ///< detached suspend mode
-static char SuspendMode; ///< suspend mode
+static signed char SuspendMode; ///< suspend mode
//////////////////////////////////////////////////////////////////////////////
diff --git a/video.c b/video.c
index 288cb7b..aae0096 100644
--- a/video.c
+++ b/video.c
@@ -332,7 +332,7 @@ static const VideoModule NoopModule; ///< forward definition of noop module
/// selected video module
static const VideoModule *VideoUsedModule = &NoopModule;
-char VideoHardwareDecoder = -1; ///< flag use hardware decoder
+signed char VideoHardwareDecoder = -1; ///< flag use hardware decoder
static char VideoSurfaceModesChanged; ///< flag surface modes changed
diff --git a/video.h b/video.h
index fa3e44f..0587393 100644
--- a/video.h
+++ b/video.h
@@ -37,7 +37,7 @@ typedef struct __video_stream__ VideoStream;
// Variables
//----------------------------------------------------------------------------
-extern char VideoHardwareDecoder; ///< flag use hardware decoder
+extern signed char VideoHardwareDecoder; ///< flag use hardware decoder
extern char VideoIgnoreRepeatPict; ///< disable repeat pict warning
extern int VideoAudioDelay; ///< audio/video delay
extern char ConfigStartX11Server; ///< flag start the x11 server