summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorphintuka <phintuka>2007-06-12 19:28:37 +0000
committerphintuka <phintuka>2007-06-12 19:28:37 +0000
commit82a9d827975d33525f3b04c94d6ad5610f26918e (patch)
treebe8f54f3aa39aa48c5099f7e5a4ffd34deac49d1 /config.c
parente55d6f065b9e241033c19461c9752e7d2edf5bee (diff)
downloadxineliboutput-82a9d827975d33525f3b04c94d6ad5610f26918e.tar.gz
xineliboutput-82a9d827975d33525f3b04c94d6ad5610f26918e.tar.bz2
Setup option to change external subtitle (.sub/.srt) font size
Diffstat (limited to 'config.c')
-rw-r--r--config.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.c b/config.c
index ee569415..7a8e52c4 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.39 2007-06-11 19:18:41 phintuka Exp $
+ * $Id: config.c,v 1.40 2007-06-12 19:28:37 phintuka Exp $
*
*/
@@ -82,6 +82,8 @@ const char *config_t::s_speakerArrangements[] =
"Surround 6.1", "Surround 7.1", "Pass Through",
NULL};
+const char *config_t::s_subtitleSizes[] = {"default", "tiny", "small", "medium", "large", "very large", "huge", NULL };
+
const char *config_t::s_subExts[] = {".sub", ".srt", ".txt", ".ssa",
".SUB", ".SRT", ".TXT", ".SSA",
NULL};
@@ -318,6 +320,7 @@ config_t::config_t() {
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]));
+ extsub_size = -1;
alpha_correction = 0;
alpha_correction_abs = 0;
@@ -540,6 +543,7 @@ bool config_t::SetupParse(const char *Name, const char *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);
+ else if (!strcasecmp(Name, "OSD.ExtSubSize")) extsub_size = atoi(Value);
else if (!strcasecmp(Name, "RemoteMode")) remote_mode = atoi(Value);
else if (!strcasecmp(Name, "Remote.ListenPort")) listen_port = atoi(Value);