0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02: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:
alex 2003-08-13 21:04:15 +00:00
parent fe025d13cc
commit c0298b66cd

View File

@ -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)