vlc-video: Enable surround sound support

The vlc plugin was keeping only up to two audio channels. It was overlooked when surround sound support was added to obs-studio. This commit remedies this oversight.

Signed-off-by: pkv <pkv@obsproject.com>
master
pkv 2022-01-28 20:18:38 +01:00 committed by Jim
parent 306e23292d
commit 17c069e1d0
1 changed files with 0 additions and 2 deletions

View File

@ -460,8 +460,6 @@ static int vlcs_audio_setup(void **p_data, char *format, unsigned *rate,
enum audio_format new_audio_format;
new_audio_format = convert_vlc_audio_format(format);
if (*channels > 2)
*channels = 2;
/* don't free audio data if the data is the same format */
if (c->audio.format == new_audio_format &&