mirror of
https://github.com/mpv-player/mpv
synced 2025-02-03 13:41:49 +00:00
Set samplerate in reset also for AC3, and set it before the format in that
case (no idea why, but it is done this way in init, so it is consistent). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28640 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6ab19b81b1
commit
0c6b3b8742
@ -454,6 +454,8 @@ static void reset(void){
|
||||
#endif
|
||||
|
||||
oss_format = format2oss(ao_data.format);
|
||||
if(ao_data.format == AF_FORMAT_AC3)
|
||||
ioctl (audio_fd, SNDCTL_DSP_SPEED, &ao_data.samplerate);
|
||||
ioctl (audio_fd, SNDCTL_DSP_SETFMT, &oss_format);
|
||||
if(ao_data.format != AF_FORMAT_AC3) {
|
||||
if (ao_data.channels > 2)
|
||||
|
Loading…
Reference in New Issue
Block a user