summaryrefslogtreecommitdiffstats
path: root/audio/decode/dec_audio.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-04-08 01:58:33 +0200
committerwm4 <wm4@nowhere>2013-05-12 21:24:56 +0200
commit3b1956608dd5536b9ee226b996d2d69b35bc065b (patch)
tree2aff8e587fe5ee2d26fa89de4365cb00703786c5 /audio/decode/dec_audio.c
parentbc03eb02958a942cb7db69cf87283431c7ea3fe8 (diff)
downloadmpv-3b1956608dd5536b9ee226b996d2d69b35bc065b.tar.bz2
mpv-3b1956608dd5536b9ee226b996d2d69b35bc065b.tar.xz
audio: print channel map additionally to channel count on terminal
Diffstat (limited to 'audio/decode/dec_audio.c')
-rw-r--r--audio/decode/dec_audio.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/audio/decode/dec_audio.c b/audio/decode/dec_audio.c
index 999a96a10b..dc461b81e3 100644
--- a/audio/decode/dec_audio.c
+++ b/audio/decode/dec_audio.c
@@ -218,11 +218,12 @@ int init_audio_filters(sh_audio_t *sh_audio, int in_samplerate,
// filter config:
memcpy(&afs->cfg, &af_cfg, sizeof(struct af_cfg));
+ char *s_from = mp_audio_config_to_str(&afs->input);
+ char *s_to = mp_audio_config_to_str(&afs->output);
mp_tmsg(MSGT_DECAUDIO, MSGL_V,
- "Building audio filter chain for %dHz/%dch/%s -> %dHz/%dch/%s...\n",
- afs->input.rate, afs->input.nch,
- af_fmt2str_short(afs->input.format), afs->output.rate,
- afs->output.nch, af_fmt2str_short(afs->output.format));
+ "Building audio filter chain for %s -> %s...\n", s_from, s_to);
+ talloc_free(s_from);
+ talloc_free(s_to);
// let's autoprobe it!
if (0 != af_init(afs)) {