client: expose connection
authorDavid Svensson Fors <davidsf@axis.com>
Mon, 15 Apr 2013 10:17:34 +0000 (12:17 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 15 Apr 2013 10:17:34 +0000 (12:17 +0200)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=697546

gst/rtsp-server/rtsp-client.c
gst/rtsp-server/rtsp-client.h

index 009014b997dd1c6112edf3166794e995334c774e..af0725378f35659a88ff6cde56c3639acef2c8db 100644 (file)
@@ -2054,6 +2054,23 @@ gst_rtsp_client_get_uri (GstRTSPClient * client)
   return result;
 }
 
+/**
+ * gst_rtsp_client_get_connection:
+ * @client: a #GstRTSPClient
+ *
+ * Get the #GstRTSPConnection of @client.
+ *
+ * Returns: (transfer none): the #GstRTSPConnection of @client.
+ * The connection object returned remains valid until the client is freed.
+ */
+GstRTSPConnection *
+gst_rtsp_client_get_connection (GstRTSPClient * client)
+{
+  g_return_val_if_fail (GST_IS_RTSP_CLIENT (client), NULL);
+
+  return client->priv->connection;
+}
+
 /**
  * gst_rtsp_client_set_send_func:
  * @client: a #GstRTSPClient
index ddb04e92d2ea5518beb220ce13f6a7c43fe34788..5e0f3f3033f4242d52ab8d252f780551aa2df5f5 100644 (file)
@@ -138,6 +138,7 @@ void                  gst_rtsp_client_set_auth          (GstRTSPClient *client,
 GstRTSPAuth *         gst_rtsp_client_get_auth          (GstRTSPClient *client);
 
 GstRTSPUrl *          gst_rtsp_client_get_uri           (GstRTSPClient *client);
+GstRTSPConnection *   gst_rtsp_client_get_connection    (GstRTSPClient *client);
 
 void                  gst_rtsp_client_set_send_func     (GstRTSPClient *client,
                                                          GstRTSPClientSendFunc func,