dec_sub: don't print sub charset of it's empty

This commit is contained in:
wm4 2013-06-28 14:22:41 +02:00
parent 9fcce1c8a6
commit 4c0896de53
1 changed files with 1 additions and 1 deletions

View File

@ -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;