summaryrefslogtreecommitdiffstats
path: root/subreader.c
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-07 19:37:19 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-07 19:37:19 +0000
commitfef3203aa0ed7a9e2faf2814e42f3d6d4ab0d43e (patch)
tree1680fe5cb0e641952ca65f49ded764ed9fcf27ba /subreader.c
parent58955e8053bedcb70804edc83f6e789656893677 (diff)
downloadmpv-fef3203aa0ed7a9e2faf2814e42f3d6d4ab0d43e.tar.bz2
mpv-fef3203aa0ed7a9e2faf2814e42f3d6d4ab0d43e.tar.xz
fix compilation without iconv
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9873 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subreader.c')
-rw-r--r--subreader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/subreader.c b/subreader.c
index bbbf6ea399..9f6b99590a 100644
--- a/subreader.c
+++ b/subreader.c
@@ -1648,7 +1648,11 @@ char** sub_filenames(char* path, char *fname)
// 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;