summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2007-03-14 13:55:04 +0000
committerphintuka <phintuka>2007-03-14 13:55:04 +0000
commit57615da490a22d5053e94a097fb808b917cbe783 (patch)
treeca0edcb3d7c4364095c2e3a44cf42ce6e7720978
parentdb2efc0df509bf258781d6ae5869e45ec979f4b8 (diff)
downloadxineliboutput-57615da490a22d5053e94a097fb808b917cbe783.tar.gz
xineliboutput-57615da490a22d5053e94a097fb808b917cbe783.tar.bz2
File extensions for separate subtitles
-rw-r--r--config.c6
-rw-r--r--config.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/config.c b/config.c
index c82974b7..1d692ae6 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.25 2007-03-14 11:29:11 phintuka Exp $
+ * $Id: config.c,v 1.26 2007-03-14 13:55:04 phintuka Exp $
*
*/
@@ -84,6 +84,10 @@ const char *config_t::s_speakerArrangements[] =
"Surround 6.1", "Surround 7.1", "Pass Through",
NULL};
+const char *config_t::s_subExts[] = {".sub", ".srt", ".txt", ".ssa",
+ ".SUB", ".SRT", ".TXT", ".SSA",
+ NULL};
+
static char *strcatrealloc(char *dest, const char *src)
{
if (!src || !*src)
diff --git a/config.h b/config.h
index 5874d1d7..490a71d3 100644
--- a/config.h
+++ b/config.h
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: config.h,v 1.16 2007-01-24 04:29:03 phintuka Exp $
+ * $Id: config.h,v 1.17 2007-03-14 13:55:04 phintuka Exp $
*
*/
@@ -167,6 +167,8 @@ class config_t {
static const char *s_audioVisualizationNames[];
static const char *s_speakerArrangements[];
+ static const char *s_subExts[];
+
public:
char video_driver[32];
char video_port[32]; // X11: DISPLAY=...