From: David Svensson Fors Date: Mon, 15 Apr 2013 10:17:34 +0000 (+0200) Subject: client: expose connection X-Git-Tag: 1.19.3~495^2~1156 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=825d6f0b5190a465ad31dd17c83cc691bc2f421a;hp=3ba1342906c58f0d476729d6b5179bc5bc024810;p=platform%2Fupstream%2Fgstreamer.git client: expose connection Fixes https://bugzilla.gnome.org/show_bug.cgi?id=697546 --- diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c index 009014b..af07253 100644 --- a/gst/rtsp-server/rtsp-client.c +++ b/gst/rtsp-server/rtsp-client.c @@ -2055,6 +2055,23 @@ gst_rtsp_client_get_uri (GstRTSPClient * client) } /** + * 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 * @func: a #GstRTSPClientSendFunc diff --git a/gst/rtsp-server/rtsp-client.h b/gst/rtsp-server/rtsp-client.h index ddb04e9..5e0f3f3 100644 --- a/gst/rtsp-server/rtsp-client.h +++ b/gst/rtsp-server/rtsp-client.h @@ -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,