mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 20:27:23 +00:00
10l
noticed by Joe Barnett <sanchezthecactus@yahoo.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8849 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3443f96783
commit
a83c899996
@ -149,11 +149,10 @@ ac3_retry:
|
||||
if(ao_data.format!=format)
|
||||
mp_msg(MSGT_AO,MSGL_WARN,"WARNING! Your soundcard does NOT support %s sample format! Broken audio or bad playback speed are possible! Try with '-aop list=format'\n",audio_out_format_name(format));
|
||||
#endif
|
||||
|
||||
|
||||
ao_data.channels = channels;
|
||||
if(format != AFMT_AC3) {
|
||||
// We only use SNDCTL_DSP_CHANNELS for >2 channels, in case some drivers don't have it
|
||||
ao_data.channels = channels;
|
||||
if (ao_data.channels > 2) {
|
||||
if ( ioctl(audio_fd, SNDCTL_DSP_CHANNELS, &ao_data.channels) == -1 ||
|
||||
ao_data.channels != channels ) {
|
||||
|
Loading…
Reference in New Issue
Block a user