Kaynağa Gözat

vlc-video: Set channel limit to 8 instead of 2

17c069e1d02049b changed to add support for surround sound, but the limit
should really just be 8 channels as pointed out by tt
Jim 3 yıl önce
ebeveyn
işleme
3e4e8d2fd0
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      plugins/vlc-video/vlc-video-source.c

+ 2 - 0
plugins/vlc-video/vlc-video-source.c

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