diff options
Diffstat (limited to 'audio/audio.c')
-rw-r--r-- | audio/audio.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/audio/audio.c b/audio/audio.c index 0458e813e7..2cda1ba110 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -93,10 +93,9 @@ bool mp_audio_config_valid(const struct mp_audio *mpa) char *mp_audio_fmt_to_str(int srate, const struct mp_chmap *chmap, int format) { - char *chstr = mp_chmap_to_str(chmap); - char *res = talloc_asprintf(NULL, "%dHz %s %dch %s", srate, chstr, - chmap->num, af_fmt_to_str(format)); - talloc_free(chstr); + char *res = talloc_asprintf(NULL, "%dHz %s %dch %s", srate, + mp_chmap_to_str(chmap), chmap->num, + af_fmt_to_str(format)); return res; } |