summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/config.c b/config.c
index 72ca5c5e..344a4c11 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c,v 1.52 2008-02-19 02:59:46 phintuka Exp $
+ * $Id: config.c,v 1.53 2008-02-20 03:25:11 phintuka Exp $
*
*/
@@ -466,12 +466,14 @@ config_t::config_t() {
unscaled_osd_opaque = 0;
unscaled_osd_lowresvideo = 1;
+#if VDRVERSNUM < 10515
spu_autoshow = 0;
memset(spu_lang, 0, sizeof(spu_lang));
- strn0cpy(spu_lang[0], "en", sizeof(spu_lang[0]));
- strn0cpy(spu_lang[2], "de", sizeof(spu_lang[2]));
- strn0cpy(spu_lang[1], "fi", sizeof(spu_lang[1]));
- //strn0cpy(spu_lang[3], "" , sizeof(spu_lang[3]));
+ strn0cpy(spu_lang[0], "eng", sizeof(spu_lang[0]));
+ strn0cpy(spu_lang[1], "deu", sizeof(spu_lang[1]));
+ strn0cpy(spu_lang[2], "fin", sizeof(spu_lang[2]));
+ strn0cpy(spu_lang[3], "" , sizeof(spu_lang[3]));
+#endif
extsub_size = -1;
alpha_correction = 0;
@@ -706,11 +708,13 @@ bool config_t::SetupParse(const char *Name, const char *Value)
else if (!strcasecmp(Name, "OSD.AlphaCorrection")) alpha_correction = atoi(Value);
else if (!strcasecmp(Name, "OSD.AlphaCorrectionAbs")) alpha_correction_abs = atoi(Value);
+#if VDRVERSNUM < 10515
else if (!strcasecmp(Name, "OSD.SpuAutoSelect")) spu_autoshow = atoi(Value);
else if (!strcasecmp(Name, "OSD.SpuLang0")) STRN0CPY(spu_lang[0], Value);
else if (!strcasecmp(Name, "OSD.SpuLang1")) STRN0CPY(spu_lang[1], Value);
else if (!strcasecmp(Name, "OSD.SpuLang2")) STRN0CPY(spu_lang[2], Value);
else if (!strcasecmp(Name, "OSD.SpuLang3")) STRN0CPY(spu_lang[3], Value);
+#endif
else if (!strcasecmp(Name, "OSD.ExtSubSize")) extsub_size = atoi(Value);
else if (!strcasecmp(Name, "RemoteMode")) remote_mode = atoi(Value);