summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGöran Jönsson <goranjn@axis.com>2016-11-21 13:05:50 +0100
committerSebastian Dröge <sebastian@centricular.com>2016-11-22 13:59:30 +0200
commit335d279a96bc91fda43ee3e1028ee3c327e542ad (patch)
treef1875cdcfecd349c2e4deca834138ae6be86737a
parent6622b5be14c1a094358c0dbbd497c84f1a11aef2 (diff)
rtsp-stream: Set close-socket FALSE on UDP src:es
With this RTSP server can use the sockets independent on the udpsrc state. When the udp src is finalized it will unref socket and when g_socket is finalized the socket will be closed. https://bugzilla.gnome.org/show_bug.cgi?id=765673
-rw-r--r--gst/rtsp-server/rtsp-stream.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/rtsp-server/rtsp-stream.c b/gst/rtsp-server/rtsp-stream.c
index 9fd3e00..f5b5cf2 100644
--- a/gst/rtsp-server/rtsp-stream.c
+++ b/gst/rtsp-server/rtsp-stream.c
@@ -1176,6 +1176,9 @@ create_and_configure_udpsources (GstElement * udpsrc_out[2],
g_object_set (G_OBJECT (udpsrc_out[0]), "loop", FALSE, NULL);
g_object_set (G_OBJECT (udpsrc_out[1]), "loop", FALSE, NULL);
+ g_object_set (G_OBJECT (udpsrc_out[0]), "close-socket", FALSE, NULL);
+ g_object_set (G_OBJECT (udpsrc_out[1]), "close-socket", FALSE, NULL);
+
ret = gst_element_set_state (udpsrc_out[0], GST_STATE_READY);
if (ret == GST_STATE_CHANGE_FAILURE)
goto error;