mirror of
https://github.com/mpv-player/mpv
synced 2025-01-27 10:03:32 +00:00
Set close-on-exec after newer open (in reset func). Patch by Andriy Gapon <agapon@cv-nj.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10601 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fe025d13cc
commit
c0298b66cd
@ -248,6 +248,10 @@ static void reset(){
|
||||
return;
|
||||
}
|
||||
|
||||
#if defined(FD_CLOEXEC) && defined(F_SETFD)
|
||||
fcntl(audio_fd, F_SETFD, FD_CLOEXEC);
|
||||
#endif
|
||||
|
||||
ioctl (audio_fd, SNDCTL_DSP_SETFMT, &ao_data.format);
|
||||
if(ao_data.format != AFMT_AC3) {
|
||||
if (ao_data.channels > 2)
|
||||
|
Loading…
Reference in New Issue
Block a user