mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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.
This commit is contained in:
parent
892cefe651
commit
2cd15bbef8
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue