[MPlayer-cvslog] r30797 - trunk/subreader.c
reimar
subversion at mplayerhq.hu
Sun Feb 28 15:22:44 CET 2010
Author: reimar
Date: Sun Feb 28 15:22:44 2010
New Revision: 30797
Log:
Make array describing the subtitle reader modules const.
Modified:
trunk/subreader.c
Modified: trunk/subreader.c
==============================================================================
--- trunk/subreader.c Sun Feb 28 14:54:55 2010 (r30796)
+++ trunk/subreader.c Sun Feb 28 15:22:44 2010 (r30797)
@@ -1355,7 +1355,7 @@ sub_data* sub_read_file (char *filename,
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,
{ 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;
More information about the MPlayer-cvslog
mailing list