From 27a786aa4adfff487e231a75bde2c6125e8adf9d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 26 Jun 2013 16:32:06 +0200 Subject: [PATCH] client: remove _get_uri() method Remove the get_uri() method on the client. A client has no uri, the uri property is an internal property to manage the last cached media for the client. --- gst/rtsp-server/rtsp-client.c | 27 --------------------------- gst/rtsp-server/rtsp-client.h | 2 -- 2 files changed, 29 deletions(-) diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c index 16a8bc069c..7e8d35b4cc 100644 --- a/gst/rtsp-server/rtsp-client.c +++ b/gst/rtsp-server/rtsp-client.c @@ -2120,33 +2120,6 @@ gst_rtsp_client_get_auth (GstRTSPClient * client) return result; } -/** - * gst_rtsp_client_get_uri: - * @client: a #GstRTSPClient - * - * Get the #GstRTSPUrl of @client. - * - * Returns: (transfer full): the #GstRTSPUrl of @client. Free with - * gst_rtsp_url_free () after usage. - */ -GstRTSPUrl * -gst_rtsp_client_get_uri (GstRTSPClient * client) -{ - GstRTSPClientPrivate *priv; - GstRTSPUrl *result = NULL; - - g_return_val_if_fail (GST_IS_RTSP_CLIENT (client), NULL); - - priv = client->priv; - - g_mutex_lock (&priv->lock); - if (priv->uri != NULL) - result = gst_rtsp_url_copy (priv->uri); - g_mutex_unlock (&priv->lock); - - return result; -} - /** * gst_rtsp_client_set_connection: * @client: a #GstRTSPClient diff --git a/gst/rtsp-server/rtsp-client.h b/gst/rtsp-server/rtsp-client.h index a6f7cac4e7..a5d32d5ab7 100644 --- a/gst/rtsp-server/rtsp-client.h +++ b/gst/rtsp-server/rtsp-client.h @@ -151,8 +151,6 @@ gboolean gst_rtsp_client_get_use_client_settings (GstRTSPClient * c void gst_rtsp_client_set_auth (GstRTSPClient *client, GstRTSPAuth *auth); GstRTSPAuth * gst_rtsp_client_get_auth (GstRTSPClient *client); -GstRTSPUrl * gst_rtsp_client_get_uri (GstRTSPClient *client); - gboolean gst_rtsp_client_set_connection (GstRTSPClient *client, GstRTSPConnection *conn); GstRTSPConnection * gst_rtsp_client_get_connection (GstRTSPClient *client);