diff options
Diffstat (limited to 'gst/udp/gstudpsrc.c')
-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; } |