diff options
author | wm4 <wm4@nowhere> | 2014-09-22 00:29:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-22 00:29:45 +0200 |
commit | 63a2024a8b4786e5f87901658294b93db55a5efc (patch) | |
tree | 4dabd2d8166478fd42c52508f6af19b4da5cd0dc /player | |
parent | 14ff4cf318d2f01f98eab8f0541eabfbcf8f6943 (diff) | |
download | mpv-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.
Diffstat (limited to 'player')
-rw-r--r-- | player/osd.c | 2 |
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); |