Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC
Commits: 5a491c20 by Thomas Guillem at 2021-06-22T15:14:41+02:00 coreaudio: fix channel reordering The chans_to_reorder variable was reset after being set up. Channel reordering was *not* needed for 5.1 and below, but was needed for upper configurations. (cherry picked from commit 37af7083dea415012139cf903af5de6f715e2609) Signed-off-by: Thomas Guillem <tho...@gllm.fr> - - - - - 1 changed file: - modules/audio_output/coreaudio_common.c Changes: ===================================== modules/audio_output/coreaudio_common.c ===================================== @@ -120,6 +120,7 @@ ca_Open(audio_output_t *p_aout) vlc_sem_init(&p_sys->flush_sem, 0); lock_init(p_sys); p_sys->p_out_chain = NULL; + p_sys->chans_to_reorder = 0; p_aout->play = ca_Play; p_aout->pause = ca_Pause; @@ -434,7 +435,6 @@ ca_Initialize(audio_output_t *p_aout, const audio_sample_format_t *fmt, p_sys->i_rate = fmt->i_rate; p_sys->i_bytes_per_frame = fmt->i_bytes_per_frame; p_sys->i_frame_length = fmt->i_frame_length; - p_sys->chans_to_reorder = 0; /* TODO VLC can't handle latency higher than 1 seconds */ if (i_dev_latency_us > 1000000) @@ -472,6 +472,7 @@ ca_Uninitialize(audio_output_t *p_aout) struct aout_sys_common *p_sys = (struct aout_sys_common *) p_aout->sys; ca_ClearOutBuffers(p_aout); p_sys->i_out_max_size = 0; + p_sys->chans_to_reorder = 0; } void View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5a491c2022650af3f09ce448b4f906d615ed1bd7 -- View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5a491c2022650af3f09ce448b4f906d615ed1bd7 You're receiving this email because of your account on code.videolan.org.
_______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits