summaryrefslogtreecommitdiffstats
path: root/audio/audio.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-25 11:11:31 +0100
committerwm4 <wm4@nowhere>2014-11-25 11:11:31 +0100
commit7d6e58471f378215d4f104b85ca6190d7e98abcf (patch)
treeb3af4c1d3e3744d00ee9603007f20b5630eec894 /audio/audio.h
parent8a7b6865972f5aeb4aec4af9bab7f0dbc147da17 (diff)
downloadmpv-7d6e58471f378215d4f104b85ca6190d7e98abcf.tar.bz2
mpv-7d6e58471f378215d4f104b85ca6190d7e98abcf.tar.xz
audio: make mp_audio_config_to_str return a stack-allocated string
Simpler overall.
Diffstat (limited to 'audio/audio.h')
-rw-r--r--audio/audio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/audio.h b/audio/audio.h
index 0b092867ca..e2346ee0aa 100644
--- a/audio/audio.h
+++ b/audio/audio.h
@@ -49,8 +49,8 @@ void mp_audio_copy_config(struct mp_audio *dst, const struct mp_audio *src);
bool mp_audio_config_equals(const struct mp_audio *a, const struct mp_audio *b);
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 *mp_audio_config_to_str(struct mp_audio *mpa);
+char *mp_audio_config_to_str_buf(char *buf, size_t buf_sz, struct mp_audio *mpa);
+#define mp_audio_config_to_str(m) mp_audio_config_to_str_buf((char[64]){0}, 64, (m))
void mp_audio_force_interleaved_format(struct mp_audio *mpa);