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:
parent
14ff4cf318
commit
63a2024a8b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user