mirror of
https://github.com/mpv-player/mpv
synced 2025-01-17 12:31:25 +00:00
1e6l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12494 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
47eb1875d0
commit
c7fa4d768d
12
subreader.c
12
subreader.c
@ -1045,11 +1045,13 @@ static iconv_t icdsc = (iconv_t)(-1);
|
||||
void subcp_open_noenca ()
|
||||
{
|
||||
char enca_lang[100], enca_fallback[100];
|
||||
if (sscanf(sub_cp, "enca:%2s:%s", enca_lang, enca_fallback) == 2
|
||||
|| sscanf(sub_cp, "ENCA:%2s:%s", enca_lang, enca_fallback) == 2) {
|
||||
subcp_open(enca_fallback);
|
||||
} else {
|
||||
subcp_open(sub_cp);
|
||||
if (sub_cp) {
|
||||
if (sscanf(sub_cp, "enca:%2s:%s", enca_lang, enca_fallback) == 2
|
||||
|| sscanf(sub_cp, "ENCA:%2s:%s", enca_lang, enca_fallback) == 2) {
|
||||
subcp_open(enca_fallback);
|
||||
} else {
|
||||
subcp_open(sub_cp);
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user