From 2cd15bbef8ae52be6bb0e84dcdad573f78ee847e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 18 May 2012 09:18:29 +0200 Subject: [PATCH] rtsp: clear the GError for pending connect Clear the GError after g_socket_connect tells us that the connection is pending. If we don't do this, glib complains when we try to reuse the non-NULL GError variable a little below. --- gst-libs/gst/rtsp/gstrtspconnection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index cfa3c002f9..da9f51001e 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -426,6 +426,7 @@ do_connect (const gchar * ip, guint16 port, GSocket ** socket_out, if (!g_socket_connect (socket, saddr, cancellable, &err)) { if (!g_error_matches (err, G_IO_ERROR, G_IO_ERROR_PENDING)) goto sys_error; + g_clear_error (&err); } else { goto done; }