From 7d6e58471f378215d4f104b85ca6190d7e98abcf Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 25 Nov 2014 11:11:31 +0100 Subject: audio: make mp_audio_config_to_str return a stack-allocated string Simpler overall. --- player/audio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'player/audio.c') diff --git a/player/audio.c b/player/audio.c index e8516bca0d..f2b49b190c 100644 --- a/player/audio.c +++ b/player/audio.c @@ -275,9 +275,8 @@ void reinit_audio_chain(struct MPContext *mpctx) mpctx->ao_decoder_fmt = talloc(NULL, struct mp_audio); *mpctx->ao_decoder_fmt = in_format; - char *s = mp_audio_config_to_str(&fmt); - MP_INFO(mpctx, "AO: [%s] %s\n", ao_get_name(ao), s); - talloc_free(s); + MP_INFO(mpctx, "AO: [%s] %s\n", ao_get_name(ao), + mp_audio_config_to_str(&fmt)); MP_VERBOSE(mpctx, "AO: Description: %s\n", ao_get_description(ao)); update_window_title(mpctx, true); } -- cgit v1.2.3