From 730eead9a987b6f94ff07337b247da3c26ad0280 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 6 Oct 2009 19:17:49 +0200 Subject: [PATCH] rtsp: use CLOSE_SOCKET() instead of close() Use CLOSE_SOCKET instead of directly calling close() because it does the right thing for windows. Fixes #597539 --- gst-libs/gst/rtsp/gstrtspconnection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index e41889373c..136d40aa7c 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -446,7 +446,7 @@ accept_failed: getnameinfo_failed: wrong_family: { - close (fd); + CLOSE_SOCKET (fd); return GST_RTSP_ERROR; } }