avoid giving a /dev/dsp fd to child processes!!

(menu exec, xscreensaver nonsense, etc)
other parts of mplayer should be fixed like this as well!


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8304 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rfelker 2002-11-28 16:14:08 +00:00
parent 9dc15d4b69
commit 0ca2d2a80b
1 changed files with 4 additions and 0 deletions

View File

@ -121,6 +121,10 @@ static int init(int rate,int channels,int format,int flags){
return 0;
}
#endif
#if defined(FD_CLOEXEC) && defined(F_SETFD)
fcntl(audio_fd, F_SETFD, FD_CLOEXEC);
#endif
ao_data.bps=channels;
if(format != AFMT_U8 && format != AFMT_S8)