rtsp: use CLOSE_SOCKET() instead of close()
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 6 Oct 2009 17:17:49 +0000 (19:17 +0200)
committerWim Taymans <wim@metal.(none)>
Tue, 6 Oct 2009 20:37:00 +0000 (22:37 +0200)
Use CLOSE_SOCKET instead of directly calling close() because it does the right
thing for windows.

Fixes #597539

gst-libs/gst/rtsp/gstrtspconnection.c

index e418893..136d40a 100644 (file)
@@ -446,7 +446,7 @@ accept_failed:
 getnameinfo_failed:
 wrong_family:
   {
-    close (fd);
+    CLOSE_SOCKET (fd);
     return GST_RTSP_ERROR;
   }
 }