mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
rtsp-server: don't ref server socket if it is NULL
Fixes test_bind_already_in_use unit test again after commit 6a497440
.
https://bugzilla.gnome.org/show_bug.cgi?id=686644
This commit is contained in:
parent
1240f98206
commit
78bde6fa3e
1 changed files with 1 additions and 1 deletions
|
@ -965,9 +965,9 @@ gst_rtsp_server_create_source (GstRTSPServer * server,
|
|||
g_return_val_if_fail (GST_IS_RTSP_SERVER (server), NULL);
|
||||
|
||||
socket = gst_rtsp_server_create_socket (server, NULL, error);
|
||||
server->socket = g_object_ref (socket);
|
||||
if (socket == NULL)
|
||||
goto no_socket;
|
||||
server->socket = g_object_ref (socket);
|
||||
|
||||
/* create a watch for reads (new connections) and possible errors */
|
||||
source = g_socket_create_source (socket, G_IO_IN |
|
||||
|
|
Loading…
Reference in a new issue