[0.11] gst-plugins-base: rtsp: fix connection
Wim Taymans
wtay at kemper.freedesktop.org
Mon Feb 20 08:45:24 PST 2012
Module: gst-plugins-base
Branch: 0.11
Commit: 26f63027a66ebe01c77d25bae7d490d0740b4968
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=26f63027a66ebe01c77d25bae7d490d0740b4968
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Mon Feb 20 17:44:59 2012 +0100
rtsp: fix connection
---
gst-libs/gst/rtsp/gstrtspconnection.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c
index 0a9212a..cfa3c00 100644
--- a/gst-libs/gst/rtsp/gstrtspconnection.c
+++ b/gst-libs/gst/rtsp/gstrtspconnection.c
@@ -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 */
More information about the gstreamer-commits
mailing list