diff options
author | wm4 <wm4@nowhere> | 2013-04-08 01:58:33 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-12 21:24:56 +0200 |
commit | 3b1956608dd5536b9ee226b996d2d69b35bc065b (patch) | |
tree | 2aff8e587fe5ee2d26fa89de4365cb00703786c5 /core/mplayer.c | |
parent | bc03eb02958a942cb7db69cf87283431c7ea3fe8 (diff) | |
download | mpv-3b1956608dd5536b9ee226b996d2d69b35bc065b.tar.bz2 mpv-3b1956608dd5536b9ee226b996d2d69b35bc065b.tar.xz |
audio: print channel map additionally to channel count on terminal
Diffstat (limited to 'core/mplayer.c')
-rw-r--r-- | core/mplayer.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/core/mplayer.c b/core/mplayer.c index e73a384baa..bbc000d7cc 100644 --- a/core/mplayer.c +++ b/core/mplayer.c @@ -1593,12 +1593,10 @@ void reinit_audio_chain(struct MPContext *mpctx) goto init_error; } ao->buffer.start = talloc_new(ao); - mp_msg(MSGT_CPLAYER, MSGL_INFO, - "AO: [%s] %dHz %dch %s (%d bytes per sample)\n", - ao->driver->info->short_name, - ao->samplerate, ao->channels.num, - af_fmt2str_short(ao->format), - af_fmt2bits(ao->format) / 8); + char *s = mp_audio_fmt_to_str(ao->samplerate, &ao->channels, ao->format); + mp_msg(MSGT_CPLAYER, MSGL_INFO, "AO: [%s] %s\n", + ao->driver->info->short_name, s); + talloc_free(s); mp_msg(MSGT_CPLAYER, MSGL_V, "AO: Description: %s\nAO: Author: %s\n", ao->driver->info->name, ao->driver->info->author); if (strlen(ao->driver->info->comment) > 0) |