diff options
-rw-r--r-- | player/osd.c | 4 | ||||
-rw-r--r-- | player/playloop.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/player/osd.c b/player/osd.c index 094e99e5b6..e3fe9e1c9b 100644 --- a/player/osd.c +++ b/player/osd.c @@ -155,7 +155,9 @@ static void print_status(struct MPContext *mpctx) if (!opts->use_terminal) return; - if (opts->quiet || !(mpctx->initialized_flags & INITIALIZED_PLAYBACK)) { + if (opts->quiet || !(mpctx->initialized_flags & INITIALIZED_PLAYBACK) || + !mpctx->playing_msg_shown) + { term_osd_set_status(mpctx, ""); return; } diff --git a/player/playloop.c b/player/playloop.c index 5b4c7c7fab..a8c47d8e66 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -852,12 +852,12 @@ void run_playloop(struct MPContext *mpctx) mp_notify(mpctx, MPV_EVENT_PLAYBACK_RESTART, NULL); mpctx->restart_complete = true; if (opts->playing_msg && !mpctx->playing_msg_shown) { - mpctx->playing_msg_shown = true; char *msg = mp_property_expand_escaped_string(mpctx, opts->playing_msg); MP_INFO(mpctx, "%s\n", msg); talloc_free(msg); } + mpctx->playing_msg_shown = true; } } |