From b436d25b3f45d6fe1d0eff8b95d79883fdda0f53 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 16 May 2019 17:20:24 +0200 Subject: [PATCH] player: don't print "Playing:" message if there's only 1 file This is just redundant and slightly annoying, at least for normal command line usage. If there are multiple entries, still print it (because you want to know where you are). Also still print it if the player was redirected (because you want to know where you got redirected to). --- player/loadfile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/player/loadfile.c b/player/loadfile.c index c9390724a9..d6c07a8052 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1396,7 +1396,10 @@ static void play_current_file(struct MPContext *mpctx) handle_force_window(mpctx, false); - MP_INFO(mpctx, "Playing: %s\n", mpctx->filename); + if (mpctx->playlist->first != mpctx->playing || + mpctx->playlist->last != mpctx->playing || + mpctx->playing->num_redirects) + MP_INFO(mpctx, "Playing: %s\n", mpctx->filename); assert(mpctx->demuxer == NULL);