1
mirror of https://github.com/mpv-player/mpv synced 2025-01-20 21:07:29 +01:00

Make array describing the subtitle reader modules const.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30797 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-02-28 14:22:44 +00:00
parent c89169f7b5
commit 9538251171

View File

@ -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;