summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-22 00:29:45 +0200
committerwm4 <wm4@nowhere>2014-09-22 00:29:45 +0200
commit63a2024a8b4786e5f87901658294b93db55a5efc (patch)
tree4dabd2d8166478fd42c52508f6af19b4da5cd0dc
parent14ff4cf318d2f01f98eab8f0541eabfbcf8f6943 (diff)
downloadmpv-63a2024a8b4786e5f87901658294b93db55a5efc.tar.bz2
mpv-63a2024a8b4786e5f87901658294b93db55a5efc.tar.xz
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.
-rw-r--r--player/osd.c2
1 files changed, 1 insertions, 1 deletions
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);