summaryrefslogtreecommitdiff
path: root/src/libspucc/xine_cc_decoder.c
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@civ.zcu.cz>2008-11-20 20:56:19 +0100
committerFrantišek Dvořák <valtri@civ.zcu.cz>2008-11-20 20:56:19 +0100
commitea2b5508e35f5125fd65730822b30bb8895ad87d (patch)
treee03317e974e1bf818ca50904242595fa01db25df /src/libspucc/xine_cc_decoder.c
parent2ba1e128cbb791cfdb2829895a854bb664018912 (diff)
downloadxine-lib-ea2b5508e35f5125fd65730822b30bb8895ad87d.tar.gz
xine-lib-ea2b5508e35f5125fd65730822b30bb8895ad87d.tar.bz2
Some warning fixes: XINE_FORMAT_SCANF, statics in headers, consts, ...
Add warning flags to the DEBUG_CFLAGS too.
Diffstat (limited to 'src/libspucc/xine_cc_decoder.c')
-rw-r--r--src/libspucc/xine_cc_decoder.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libspucc/xine_cc_decoder.c b/src/libspucc/xine_cc_decoder.c
index 0018bfa1e..1d9c87366 100644
--- a/src/libspucc/xine_cc_decoder.c
+++ b/src/libspucc/xine_cc_decoder.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000-2003 the xine project
+ * Copyright (C) 2000-2008 the xine project
*
* This file is part of xine, a free video player.
*
@@ -33,6 +33,12 @@
#define LOG_DEBUG 1
*/
+const char *cc_schemes[NUM_CC_PALETTES + 1] = {
+ "White/Gray/Translucent",
+ "White/Black/Solid",
+ NULL
+};
+
typedef struct spucc_decoder_s {
spu_decoder_t spu_decoder;
@@ -193,7 +199,7 @@ static void spucc_register_cfg_vars(spucc_class_t *this,
cc_vars->cc_scheme = xine_cfg->register_enum(xine_cfg,
"subtitles.closedcaption.scheme", 0,
- cc_schemes,
+ (char **)cc_schemes,
_("closed-captioning foreground/background scheme"),
_("Choose your favourite rendering of the closed "
"captions."),