summaryrefslogtreecommitdiffstats
path: root/gst/udp
diff options
context:
space:
mode:
authorSebastien Cote <sebas642@yahoo.ca>2005-11-25 18:03:24 +0000
committerMichael Smith <msmith@xiph.org>2005-11-25 18:03:24 +0000
commit0245479f3e843dca241a8fa462974ecf83e75e20 (patch)
treee35b9f3d47482a6ce9c2cb409ab78230804c7c23 /gst/udp
parentb47757e510da1646658888895d3a8d5854c161cc (diff)
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.
Diffstat (limited to 'gst/udp')
-rw-r--r--gst/udp/gstudpsrc.c9
1 files changed, 9 insertions, 0 deletions
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;
}