mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
webrtc/nice: Make sure to return NULL when validating turn server fails
It affects 'add-turn-server' signal action and 'turn-server' property of webrtcbin. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3120>
This commit is contained in:
parent
212c09a70e
commit
94c2cd9ddd
1 changed files with 8 additions and 1 deletions
|
@ -1344,12 +1344,19 @@ _validate_turn_server (GstWebRTCNice * ice, const gchar * s)
|
|||
}
|
||||
}
|
||||
|
||||
out:
|
||||
g_list_free (keys);
|
||||
g_free (user);
|
||||
g_free (pass);
|
||||
|
||||
return uri;
|
||||
|
||||
out:
|
||||
g_list_free (keys);
|
||||
g_free (user);
|
||||
g_free (pass);
|
||||
gst_uri_unref (uri);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue