}
}
-static void
-close_connection (GstRTSPClient * client)
+/**
+ * gst_rtsp_client_close:
+ * @client: a #GstRTSPClient
+ *
+ * Close the connection of @client and remove all media it was managing.
+ *
+ * Since: 1.4
+ */
+void
+gst_rtsp_client_close (GstRTSPClient * client)
{
GstRTSPClientPrivate *priv = client->priv;
const gchar *tunnelid;
if (priv->close_seq && priv->close_seq == cseq) {
GST_INFO ("client %p: send close message", client);
priv->close_seq = 0;
- close_connection (client);
+ gst_rtsp_client_close (client);
}
return GST_RTSP_OK;
guint gst_rtsp_client_attach (GstRTSPClient *client,
GMainContext *context);
+void gst_rtsp_client_close (GstRTSPClient * client);
void gst_rtsp_client_set_send_func (GstRTSPClient *client,
GstRTSPClientSendFunc func,