[vlc-commits] core: use vlc_pipe()

Rémi Denis-Courmont git at videolan.org
Wed Feb 9 22:01:47 CET 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Feb  9 22:58:28 2011 +0200| [dbdec434dd78a5d058a55afbc26760d5b4e33b25] | committer: Rémi Denis-Courmont

core: use vlc_pipe()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dbdec434dd78a5d058a55afbc26760d5b4e33b25
---

 src/misc/objects.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/misc/objects.c b/src/misc/objects.c
index 4622ebf..b85be63 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -294,7 +294,8 @@ static void vlc_object_destroy( vlc_object_t *p_this )
 /**
  * select()-able pipes emulated using Winsock
  */
-static int pipe (int fd[2])
+# define vlc_pipe selectable_pipe
+static int selectable_pipe (int fd[2])
 {
     SOCKADDR_IN addr;
     int addrlen = sizeof (addr);
@@ -365,7 +366,7 @@ int vlc_object_waitpipe( vlc_object_t *obj )
         if (internals->pipes[0] == -1)
 #endif
         {
-            if (pipe (internals->pipes))
+            if (vlc_pipe (internals->pipes))
                 internals->pipes[0] = internals->pipes[1] = -1;
         }
 



More information about the vlc-commits mailing list