mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
rtsp-stream: plug socket leak
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=688703
This commit is contained in:
parent
ff22750eab
commit
0996266342
1 changed files with 2 additions and 0 deletions
|
@ -350,6 +350,7 @@ again:
|
|||
|
||||
g_object_get (G_OBJECT (udpsrc0), "used-socket", &socket, NULL);
|
||||
g_object_set (G_OBJECT (udpsink0), "socket", socket, NULL);
|
||||
g_object_unref (socket);
|
||||
g_object_set (G_OBJECT (udpsink0), "close-socket", FALSE, NULL);
|
||||
|
||||
udpsink1 = gst_element_factory_make ("multiudpsink", NULL);
|
||||
|
@ -375,6 +376,7 @@ again:
|
|||
|
||||
g_object_get (G_OBJECT (udpsrc1), "used-socket", &socket, NULL);
|
||||
g_object_set (G_OBJECT (udpsink1), "socket", socket, NULL);
|
||||
g_object_unref (socket);
|
||||
g_object_set (G_OBJECT (udpsink1), "close-socket", FALSE, NULL);
|
||||
g_object_set (G_OBJECT (udpsink1), "sync", FALSE, NULL);
|
||||
g_object_set (G_OBJECT (udpsink1), "async", FALSE, NULL);
|
||||
|
|
Loading…
Reference in a new issue