mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
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
This commit is contained in:
parent
6622b5be14
commit
335d279a96
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue