mirror of https://github.com/mpv-player/mpv
corrected utf8 files autoselection
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10930 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e27e245ffe
commit
74b135fd61
|
@ -1762,8 +1762,9 @@ char** sub_filenames(char* path, char *fname)
|
||||||
if (prio) {
|
if (prio) {
|
||||||
prio += prio;
|
prio += prio;
|
||||||
#ifdef USE_ICONV
|
#ifdef USE_ICONV
|
||||||
if (sub_cp) // prefer UTF-8 coded
|
if (sub_utf8 || (i<3)){ // prefer UTF-8 coded
|
||||||
prio++;
|
prio++;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
sprintf(tmpresult, "%s%s", j == 0 ? f_dir : path, de->d_name);
|
sprintf(tmpresult, "%s%s", j == 0 ? f_dir : path, de->d_name);
|
||||||
// fprintf(stderr, "%s priority %d\n", tmpresult, prio);
|
// fprintf(stderr, "%s priority %d\n", tmpresult, prio);
|
||||||
|
|
Loading…
Reference in New Issue