diff options
author | wm4 <wm4@nowhere> | 2019-05-16 17:20:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:04 +0200 |
commit | a80f63cb9a889a4fc5f32fb17de5d9e2eedb3e7f (patch) | |
tree | 978559582dfde0925fdc8cd7cebc92820c5da669 /player | |
parent | 53cf4e27d48c783d4dc0103d9d082597a1266c0f (diff) | |
download | mpv-a80f63cb9a889a4fc5f32fb17de5d9e2eedb3e7f.tar.bz2 mpv-a80f63cb9a889a4fc5f32fb17de5d9e2eedb3e7f.tar.xz |
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).
Diffstat (limited to 'player')
-rw-r--r-- | player/loadfile.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index 48813c80a0..f4fad8a914 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -1399,7 +1399,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); |