From 0245479f3e843dca241a8fa462974ecf83e75e20 Mon Sep 17 00:00:00 2001 From: Sebastien Cote Date: Fri, 25 Nov 2005 18:03:24 +0000 Subject: gst/udp/gstudpsrc.c: Patch from Sebastien Cote to close control sockets in udpsrc. Original commit message from CVS: * gst/udp/gstudpsrc.c: (gst_udpsrc_stop): Patch from Sebastien Cote to close control sockets in udpsrc. --- gst/udp/gstudpsrc.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gst/udp') diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index 6c18d3fb..12c0c99d 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -588,6 +588,15 @@ gst_udpsrc_stop (GstBaseSrc * bsrc) close (src->sock); src->sock = -1; } + + if (src->control_sock[0] != -1) { + close (src->control_sock[0]); + src->control_sock[0] = -1; + } + if (src->control_sock[1] != -1) { + close (src->control_sock[1]); + src->control_sock[1] = -1; + } return TRUE; } -- cgit