mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 01:52:19 +00:00
dec_sub: don't print sub charset of it's empty
This commit is contained in:
parent
9fcce1c8a6
commit
4c0896de53
@ -398,7 +398,7 @@ bool sub_read_all_packets(struct dec_sub *sub, struct sh_sub *sh)
|
||||
if (opts->sub_cp && !sh->is_utf8)
|
||||
sub->charset = guess_sub_cp(subs, opts->sub_cp);
|
||||
|
||||
if (sub->charset)
|
||||
if (sub->charset && sub->charset[0])
|
||||
mp_msg(MSGT_OSD, MSGL_INFO, "Using subtitle charset: %s\n", sub->charset);
|
||||
|
||||
double sub_speed = 1.0;
|
||||
|
Loading…
Reference in New Issue
Block a user