Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
1d27f9aa by Thomas Guillem at 2023-01-09T11:42:17+01:00
coreaudio: add missing chain initialisation
(cherry picked from commit 27009027ab57ea827b871ca73ee9636b383292c3)
Signed-off-by: Thomas Guillem <[email protected]>
- - - - -
18a5a49a by Thomas Guillem at 2023-01-09T11:44:55+01:00
audiounit: fix swap_rear_surround check
(cherry picked from commit a4b715b3e775b6b63ff3ac5a96383d0ecbb7a0ac)
Signed-off-by: Thomas Guillem <[email protected]>
- - - - -
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->pp_out_last = &p_sys->p_out_chain;
p_sys->chans_to_reorder = 0;
p_aout->play = ca_Play;
@@ -804,7 +805,7 @@ MapInputLayout(audio_output_t *p_aout, const
audio_sample_format_t *fmt,
inlayout->mChannelLayoutTag =
kAudioChannelLayoutTag_UseChannelDescriptions;
inlayout->mNumberChannelDescriptions = aout_FormatNbChannels(fmt);
- bool swap_rear_surround = fmt->i_physical_channels & AOUT_CHANS_7_0;
+ bool swap_rear_surround = (fmt->i_physical_channels & AOUT_CHANS_7_0) ==
AOUT_CHANS_7_0;
if (swap_rear_surround)
msg_Dbg(p_aout, "swapping Surround and RearSurround channels "
"for 7.1 Rear Surround");
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/compare/65ea8d19d91ac1599a29e8411485a72fe89c45e2...18a5a49a6d9d0a2f9e5890faca567cb805417f1f
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/compare/65ea8d19d91ac1599a29e8411485a72fe89c45e2...18a5a49a6d9d0a2f9e5890faca567cb805417f1f
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits