From 63a2024a8b4786e5f87901658294b93db55a5efc Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 22 Sep 2014 00:29:45 +0200 Subject: 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. --- player/osd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') diff --git a/player/osd.c b/player/osd.c index cfbc0a9319..26fee5dec3 100644 --- a/player/osd.c +++ b/player/osd.c @@ -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); -- cgit v1.2.3