1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-22 03:08:33 +00:00

charset_conv: fix switched parameters

Fixes .
This commit is contained in:
wm4 2015-08-02 18:21:22 +02:00
parent aa0157d9b8
commit bbbb2d9723

View File

@ -266,7 +266,7 @@ bstr mp_charset_guess_and_conv_to_utf8(struct mp_log *log, bstr buf,
const char *user_cp, int flags)
{
void *tmp = talloc_new(NULL);
const char *cp = mp_charset_guess(log, tmp, buf, user_cp, flags);
const char *cp = mp_charset_guess(tmp, log, buf, user_cp, flags);
bstr res = mp_iconv_to_utf8(log, buf, cp, flags);
talloc_free(tmp);
return res;