Skip to content
Snippets Groups Projects
Commit b73f7c40 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf
Browse files

coreaudio: fix original value never set

Regression from 91f42699

This fixes the shortcut to map channels to Center or Stereo.
parent 95a53de5
No related branches found
No related tags found
1 merge request!2786coreaudio: fix surround 5.1 / 7.1 mapping on macOS and tvOS
......@@ -606,8 +606,8 @@ MapOutputLayout(audio_output_t *p_aout, audio_sample_format_t *fmt,
const AudioChannelLayout *outlayout, bool *warn_configuration)
{
/* Fill VLC physical_channels from output layout */
fmt->i_physical_channels = 0;
uint32_t i_original = fmt->i_physical_channels;
fmt->i_physical_channels = 0;
AudioChannelLayout *reslayout = NULL;
if (outlayout == NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment