aboutsummaryrefslogtreecommitdiffhomepage
path: root/audio/decode
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2013-04-08 01:58:33 +0200
committerGravatar wm4 <wm4@nowhere>2013-05-12 21:24:56 +0200
commit3b1956608dd5536b9ee226b996d2d69b35bc065b (patch)
tree2aff8e587fe5ee2d26fa89de4365cb00703786c5 /audio/decode
parentbc03eb02958a942cb7db69cf87283431c7ea3fe8 (diff)
audio: print channel map additionally to channel count on terminal
Diffstat (limited to 'audio/decode')
-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)) {