From: Peter Kjellerstedt Date: Thu, 13 Dec 2007 15:54:00 +0000 (+0000) Subject: gst-libs/gst/rtsp/gstrtspconnection.c: Close control sockets. Fixes #503440. X-Git-Tag: 1.19.3~511^2~10795 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba4bb0fa8c8c3991fd0ffa8a91059841dab67e2f;p=platform%2Fupstream%2Fgstreamer.git gst-libs/gst/rtsp/gstrtspconnection.c: Close control sockets. Fixes #503440. Original commit message from CVS: Patch by: Peter Kjellerstedt * gst-libs/gst/rtsp/gstrtspconnection.c: (gst_rtsp_connection_free): Close control sockets. Fixes #503440. --- diff --git a/ChangeLog b/ChangeLog index 999b6ef..d876f83 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2007-12-13 Wim Taymans + Patch by: Peter Kjellerstedt + + * gst-libs/gst/rtsp/gstrtspconnection.c: + (gst_rtsp_connection_free): + Close control sockets. Fixes #503440. + +2007-12-13 Wim Taymans + * gst/playback/gstdecodebin2.c: (analyze_new_pad), (connect_pad): Expose the right pad in the right place with the right element. diff --git a/common b/common index fb7ab03..ea5f2cf 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit fb7ab03319930496e922173d54f6dfccfff6f357 +Subproject commit ea5f2cfab1a164a5d285fe745343cbe0a476a904 diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index 1da824d..a11f29b 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -1163,6 +1163,10 @@ gst_rtsp_connection_free (GstRTSPConnection * conn) g_return_val_if_fail (conn != NULL, GST_RTSP_EINVAL); + if (WRITE_SOCKET (conn) >= 0) + CLOSE_SOCKET (WRITE_SOCKET (conn)); + if (READ_SOCKET (conn) >= 0) + CLOSE_SOCKET (READ_SOCKET (conn)); #ifdef G_OS_WIN32 WSACleanup (); #endif