1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-20 06:46:55 +00:00

ao_coreaudio: move some code to make output readable

This commit is contained in:
Stefano Pigozzi 2014-12-27 00:27:50 +01:00 committed by Diogo Franco (Kovensky)
parent 7f839323cb
commit 777bffd307

View File

@ -415,11 +415,11 @@ bool ca_layout_to_mp_chmap(struct ao *ao, AudioChannelLayout *layout,
struct mp_chmap *chmap)
{
void *talloc_ctx = talloc_new(NULL);
AudioChannelLayout *l = ca_layout_to_custom_layout(ao, talloc_ctx, layout);
MP_DBG(ao, "input channel layout:\n");
ca_log_layout(ao, MSGL_DEBUG, layout);
AudioChannelLayout *l = ca_layout_to_custom_layout(ao, talloc_ctx, layout);
if (!l)
goto coreaudio_error;