mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
server: don't crash on NULL GError
This commit is contained in:
parent
aa50aac669
commit
0091339254
1 changed files with 1 additions and 1 deletions
|
@ -1114,7 +1114,7 @@ default_accept_client (GstRTSPServer * server, GstRTSPClient * client,
|
|||
accept_failed:
|
||||
{
|
||||
gchar *str = gst_rtsp_strresult (res);
|
||||
*error = g_error_new (GST_LIBRARY_ERROR, GST_LIBRARY_ERROR_FAILED,
|
||||
g_set_error (error, GST_LIBRARY_ERROR, GST_LIBRARY_ERROR_FAILED,
|
||||
"Could not accept client on server socket %p: %s", socket, str);
|
||||
GST_ERROR ("Could not accept client on server socket %p: %s", socket, str);
|
||||
g_free (str);
|
||||
|
|
Loading…
Reference in a new issue