rtsp: fix connection
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 20 Feb 2012 16:44:59 +0000 (17:44 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 20 Feb 2012 16:44:59 +0000 (17:44 +0100)
gst-libs/gst/rtsp/gstrtspconnection.c

index 0a9212a..cfa3c00 100644 (file)
@@ -444,12 +444,14 @@ do_connect (const gchar * ip, guint16 port, GSocket ** socket_out,
   }
   g_socket_set_timeout (socket, 0);
 
-  if (g_socket_check_connect_result (socket, &err))
+  if (!g_socket_check_connect_result (socket, &err))
     goto sys_error;
 
 done:
   g_object_unref (saddr);
 
+  *socket_out = socket;
+
   return GST_RTSP_OK;
 
   /* ERRORS */