summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-03 21:50:37 +0200
committerwm4 <wm4@nowhere>2015-06-03 21:50:37 +0200
commite14df5c4f4e57a860222156b2f6124824b90c216 (patch)
tree1c2839af394b26dd9bccbdb7aefcc7d7d67c71fa /player/loadfile.c
parent52bd61d698792ea15e4f8c3e117785f137a551e7 (diff)
downloadmpv-e14df5c4f4e57a860222156b2f6124824b90c216.tar.bz2
mpv-e14df5c4f4e57a860222156b2f6124824b90c216.tar.xz
player: print a message along with track list
Slightly less strange.
Diffstat (limited to 'player/loadfile.c')
-rw-r--r--player/loadfile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index b3fc08094e..46aa999d76 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -143,8 +143,10 @@ static void print_stream(struct MPContext *mpctx, struct track *t)
MP_INFO(mpctx, "%s\n", b);
}
-void print_track_list(struct MPContext *mpctx)
+void print_track_list(struct MPContext *mpctx, const char *msg)
{
+ if (msg)
+ MP_INFO(mpctx, "%s\n", msg);
for (int t = 0; t < STREAM_TYPE_COUNT; t++) {
for (int n = 0; n < mpctx->num_tracks; n++)
if (mpctx->tracks[n]->type == t)
@@ -176,7 +178,7 @@ void update_demuxer_properties(struct MPContext *mpctx)
struct demuxer *tracks = mpctx->track_layout;
if (tracks->events & DEMUX_EVENT_STREAMS) {
add_demuxer_tracks(mpctx, tracks);
- print_track_list(mpctx);
+ print_track_list(mpctx, NULL);
tracks->events &= ~DEMUX_EVENT_STREAMS;
}
if (events & DEMUX_EVENT_METADATA) {