[vlc-commits] [Git][videolan/vlc][master] coreaudio: fix channel reordering

Jean-Baptiste Kempf gitlab at videolan.org
Tue Jun 22 13:12:43 UTC 2021



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
37af7083 by Thomas Guillem at 2021-06-22T12:51:57+00: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.

- - - - -


1 changed file:

- modules/audio_output/coreaudio_common.c


Changes:

=====================================
modules/audio_output/coreaudio_common.c
=====================================
@@ -128,6 +128,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;
@@ -439,7 +440,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;
 
     p_sys->i_dev_latency_ticks = i_dev_latency_ticks;
 
@@ -470,6 +470,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/37af7083dea415012139cf903af5de6f715e2609

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/37af7083dea415012139cf903af5de6f715e2609
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list