[Mplayer-cvslog] CVS: main subreader.c,1.113,1.114
Alex Beregszaszi
alex at mplayerhq.hu
Mon Jul 28 00:23:10 CEST 2003
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv8922
Modified Files:
subreader.c
Log Message:
fix against dummy solaris sprintf, bug reported by Gotz Waschk
Index: subreader.c
===================================================================
RCS file: /cvsroot/mplayer/main/subreader.c,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -r1.113 -r1.114
--- subreader.c 20 Jul 2003 15:29:40 -0000 1.113
+++ subreader.c 27 Jul 2003 22:23:07 -0000 1.114
@@ -1694,10 +1694,15 @@
// we have a (likely) subtitle file
if (found) {
int prio = 0;
- sprintf(tmpresult, "%s %s", f_fname_trim, tmp_sub_id);
- if (strcmp(tmp_fname_trim, tmpresult) == 0 && sub_match_fuzziness >= 1) {
- // matches the movie name + lang extension
- prio = 5;
+ if (tmp_sub_id)
+ {
+ sprintf(tmpresult, "%s %s", f_fname_trim, tmp_sub_id);
+ printf("dvdsublang...%s\n", tmpresult);
+ if (strcmp(tmp_fname_trim, tmpresult) == 0 && sub_match_fuzziness >= 1) {
+ // matches the movie name + lang extension
+ prio = 5;
+ break;
+ }
} else if (strcmp(tmp_fname_trim, f_fname_trim) == 0) {
// matches the movie name
prio = 4;
More information about the MPlayer-cvslog
mailing list