summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mg_setup.c2
-rw-r--r--mg_setup.h2
-rw-r--r--vdr_setup.c3
3 files changed, 4 insertions, 3 deletions
diff --git a/mg_setup.c b/mg_setup.c
index 9e84aa5..ffc5c83 100644
--- a/mg_setup.c
+++ b/mg_setup.c
@@ -51,7 +51,7 @@ mgSetup::mgSetup ()
// stuff related to cover image display
ImageCacheDir = strdup( "/tmp" );
- UseDeviceStillPicture = true;
+ UseDeviceStillPicture = 1;
ImageShowDuration = 10;
}
diff --git a/mg_setup.h b/mg_setup.h
index 52ea988..6366f5e 100644
--- a/mg_setup.h
+++ b/mg_setup.h
@@ -56,7 +56,7 @@ class mgSetup
int ImageShowDuration;
char *ImageCacheDir;
- bool UseDeviceStillPicture;
+ int UseDeviceStillPicture;
int DeleteStaleReferences;
bool CreateMode;
diff --git a/vdr_setup.c b/vdr_setup.c
index 5baf459..6c54773 100644
--- a/vdr_setup.c
+++ b/vdr_setup.c
@@ -23,6 +23,7 @@
#include "vdr_actions.h"
#include "i18n.h"
+static char* chars_allowed = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_./";
// --- mgMenuSetup -----------------------------------------------------------
@@ -59,7 +60,7 @@ mgMenuSetup::mgMenuSetup ()
&the_setup.ImageShowDuration, 1, 100));
Add (new
cMenuEditStrItem (tr ("Setup.Muggle$Image cache directory"),
- &the_setup.ImageCacheDir, 256, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_./" ) );
+ the_setup.ImageCacheDir, 256, chars_allowed ) );
Add (new
cMenuEditBoolItem (tr ("Setup.Muggle$Use DVB still picture"),
&the_setup.UseDeviceStillPicture));