1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-19 18:05:21 +00:00

osd: fix --term-osd=no

It didn't actually disable it.

I'm actually not sure what this option is useful for, but fixing it
can't harm.
This commit is contained in:
wm4 2014-09-22 00:29:45 +02:00
parent 14ff4cf318
commit 63a2024a8b

View File

@ -109,7 +109,7 @@ static void term_osd_set_subs(struct MPContext *mpctx, const char *text)
static void term_osd_set_text(struct MPContext *mpctx, const char *text)
{
if (mpctx->video_out && mpctx->opts->term_osd != 1)
if ((mpctx->video_out && mpctx->opts->term_osd != 1) || !mpctx->opts->term_osd)
text = ""; // disable
talloc_free(mpctx->term_osd_text);
mpctx->term_osd_text = talloc_strdup(mpctx, text);