mirror of https://github.com/mpv-player/mpv
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:
parent
9dc15d4b69
commit
0ca2d2a80b
|
@ -122,6 +122,10 @@ static int init(int rate,int channels,int format,int flags){
|
|||
}
|
||||
#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)
|
||||
ao_data.bps*=2;
|
||||
|
|
Loading…
Reference in New Issue