Mercurial > mplayer.hg
changeset 30755:4e654b2e4517
Make array describing the subtitle reader modules const.
author | reimar |
---|---|
date | Sun, 28 Feb 2010 14:22:44 +0000 |
parents | dff9ee89b7c1 |
children | 69bbd8b9fd09 |
files | subreader.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/subreader.c Sun Feb 28 13:54:55 2010 +0000 +++ b/subreader.c Sun Feb 28 14:22:44 2010 +0000 @@ -1355,7 +1355,7 @@ 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_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;