summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Björklund <dennisbj@users.sourceforge.net>2002-06-24 07:55:13 +0000
committerDennis Björklund <dennisbj@users.sourceforge.net>2002-06-24 07:55:13 +0000
commitf037973dd6aa7504fd05168ae74307da90414770 (patch)
treee9a7c2633297517dd95627bfed2037cc5a558ec6
parent788ef1a1ce80d4e918f2f4beb43a7301ca9c4399 (diff)
downloadxine-lib-f037973dd6aa7504fd05168ae74307da90414770.tar.gz
xine-lib-f037973dd6aa7504fd05168ae74307da90414770.tar.bz2
The segfault is more likely because of the missing NULL value.
This puts the translation back plus NULL-terminates the array. CVS patchset: 2150 CVS date: 2002/06/24 07:55:13
-rw-r--r--src/libsputext/xine_decoder.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libsputext/xine_decoder.c b/src/libsputext/xine_decoder.c
index a3d0b2703..50f5b6a04 100644
--- a/src/libsputext/xine_decoder.c
+++ b/src/libsputext/xine_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.32 2002/06/23 23:33:24 miguelfreitas Exp $
+ * $Id: xine_decoder.c,v 1.33 2002/06/24 07:55:13 dennisbj Exp $
*
* code based on mplayer module:
*
@@ -1035,12 +1035,13 @@ static void spudec_dispose (spu_decoder_t *this_gen) {
spu_decoder_t *init_spu_decoder_plugin (int iface_version, xine_t *xine) {
sputext_decoder_t *this ;
- static char *subtitle_size_strings[SUBTITLE_SIZE_NUM] = { NULL };
+ static char *subtitle_size_strings[SUBTITLE_SIZE_NUM+1] = { NULL };
if (!subtitle_size_strings[0]) {
- subtitle_size_strings[SUBTITLE_SIZE_SMALL] = "small";
- subtitle_size_strings[SUBTITLE_SIZE_NORMAL] = "normal";
- subtitle_size_strings[SUBTITLE_SIZE_LARGE] = "large";
+ subtitle_size_strings[SUBTITLE_SIZE_SMALL] = _("Small");
+ subtitle_size_strings[SUBTITLE_SIZE_NORMAL] = _("Normal");
+ subtitle_size_strings[SUBTITLE_SIZE_LARGE] = _("Large");
+ subtitle_size_strings[SUBTITLE_SIZE_NUM] = NULL; /* allready NULL since static, but good for documentation */
}
if (iface_version != 8) {