server: don't crash on NULL GError

This commit is contained in:
Wim Taymans 2013-05-30 17:23:51 +02:00
parent aa50aac669
commit 0091339254

View file

@ -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);