From 8437356b6c615ac93f49fe122a591a229722dbe8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 6 Feb 2014 16:49:50 +0100 Subject: options: add --no-terminal switch Mostly useful for internal reasons. This code will be enabled by default if mpv is started via the client API. --- player/osd.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'player/osd.c') diff --git a/player/osd.c b/player/osd.c index 1f15e3ddc7..abfe826a81 100644 --- a/player/osd.c +++ b/player/osd.c @@ -70,6 +70,9 @@ static void term_osd_update(struct MPContext *mpctx) int num_parts = 0; char *parts[3] = {0}; + if (!mpctx->opts->use_terminal) + return; + if (mpctx->term_osd_subs && mpctx->term_osd_subs[0]) parts[num_parts++] = mpctx->term_osd_subs; if (mpctx->term_osd_text && mpctx->term_osd_text[0]) @@ -147,6 +150,9 @@ void print_status(struct MPContext *mpctx) update_window_title(mpctx, false); + if (!opts->use_terminal) + return; + if (opts->quiet || !(mpctx->initialized_flags & INITIALIZED_PLAYBACK)) { term_osd_set_status(mpctx, ""); return; -- cgit v1.2.3