mirror of
https://github.com/mpv-player/mpv
synced 2025-02-26 02:05:31 +00:00
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) {
|
||||
prio += prio;
|
||||
#ifdef USE_ICONV
|
||||
if (sub_cp) // prefer UTF-8 coded
|
||||
if (sub_utf8 || (i<3)){ // prefer UTF-8 coded
|
||||
prio++;
|
||||
}
|
||||
#endif
|
||||
sprintf(tmpresult, "%s%s", j == 0 ? f_dir : path, de->d_name);
|
||||
// fprintf(stderr, "%s priority %d\n", tmpresult, prio);
|
||||
|
Loading…
Reference in New Issue
Block a user