From 9538251171a50b1f8d080a58e2a171d23c0a37f2 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 28 Feb 2010 14:22:44 +0000 Subject: [PATCH] Make array describing the subtitle reader modules const. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30797 b3059339-0415-0410-9bf9-f77b7e298cf2 --- subreader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subreader.c b/subreader.c index bbabda8511..74a85a2a75 100644 --- a/subreader.c +++ b/subreader.c @@ -1355,7 +1355,7 @@ sub_data* sub_read_file (char *filename, float fps) { subtitle *first, *second, *sub, *return_sub, *alloced_sub = NULL; sub_data *subt_data; int uses_time = 0, sub_num = 0, sub_errs = 0; - struct subreader sr[]= + static const struct subreader sr[]= { { sub_read_line_microdvd, NULL, "microdvd" }, { sub_read_line_subrip, NULL, "subrip" }, @@ -1372,7 +1372,7 @@ sub_data* sub_read_file (char *filename, float fps) { { sub_read_line_jacosub, NULL, "jacosub" }, { sub_read_line_mpl2, NULL, "mpl2" } }; - struct subreader *srp; + const struct subreader *srp; if(filename==NULL) return NULL; //qnx segfault i = 0;