[Mplayer-cvslog] CVS: main/libao2 ao_oss.c,1.39,1.40

Alex Beregszaszi alex at mplayerhq.hu
Wed Aug 13 23:04:41 CEST 2003


Update of /cvsroot/mplayer/main/libao2
In directory mail:/var/tmp.root/cvs-serv12071

Modified Files:
	ao_oss.c 
Log Message:
Set close-on-exec after newer open (in reset func). Patch by Andriy Gapon <agapon at cv-nj.com>

Index: ao_oss.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_oss.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- ao_oss.c	21 Mar 2003 16:42:50 -0000	1.39
+++ ao_oss.c	13 Aug 2003 21:04:15 -0000	1.40
@@ -248,6 +248,10 @@
 	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)



More information about the MPlayer-cvslog mailing list