diff options
author | Sebastien Cote <sebas642@yahoo.ca> | 2005-11-25 18:03:24 +0000 |
---|---|---|
committer | Michael Smith <msmith@xiph.org> | 2005-11-25 18:03:24 +0000 |
commit | 0245479f3e843dca241a8fa462974ecf83e75e20 (patch) | |
tree | e35b9f3d47482a6ce9c2cb409ab78230804c7c23 /gst/udp | |
parent | b47757e510da1646658888895d3a8d5854c161cc (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.c | 9 |
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; } |