diff options
author | wm4 <wm4@nowhere> | 2014-11-25 11:11:31 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-25 11:11:31 +0100 |
commit | 7d6e58471f378215d4f104b85ca6190d7e98abcf (patch) | |
tree | b3af4c1d3e3744d00ee9603007f20b5630eec894 /player | |
parent | 8a7b6865972f5aeb4aec4af9bab7f0dbc147da17 (diff) | |
download | mpv-7d6e58471f378215d4f104b85ca6190d7e98abcf.tar.bz2 mpv-7d6e58471f378215d4f104b85ca6190d7e98abcf.tar.xz |
audio: make mp_audio_config_to_str return a stack-allocated string
Simpler overall.
Diffstat (limited to 'player')
-rw-r--r-- | player/audio.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); } |