[MPlayer-dev-eng] [PATCH] fix compilation of subreader.c without iconv

Andreas Hess jaska at gmx.net
Mon Apr 7 21:13:45 CEST 2003


Hi,

at the moment cvs doesn't compile without iconv support because of a
missing #ifdef in subreader.c . Patch is attached.


Andreas
-------------- next part --------------
Index: subreader.c
===================================================================
RCS file: /cvsroot/mplayer/main/subreader.c,v
retrieving revision 1.100
diff -u -r1.100 subreader.c
--- subreader.c	7 Apr 2003 16:03:37 -0000	1.100
+++ subreader.c	7 Apr 2003 19:25:50 -0000
@@ -1648,7 +1648,11 @@
 
 		// does it end with a subtitle extension?
 		found = 0;
+#ifdef USE_ICONV
 		for (i = (sub_cp ? 1 : 0); sub_exts[i]; i++) {
+#else
+		for (i = 0; sub_exts[i]; i++) {
+#endif
 		    if (strcmp(sub_exts[i], tmp_fname_ext) == 0) {
 			found = 1;
 			break;


More information about the MPlayer-dev-eng mailing list