Add gst_rtsp_client_send_request API

This makes it possible to send arbitrary messages to a client, such as
SET_PARAMETER or GET_PARAMETER
This commit is contained in:
Youness Alaoui 2013-06-10 17:32:12 -04:00 committed by Wim Taymans
parent aab1198516
commit d2dab47085
2 changed files with 18 additions and 0 deletions

View file

@ -2295,6 +2295,21 @@ gst_rtsp_client_handle_message (GstRTSPClient * client,
return GST_RTSP_OK;
}
/**
* gst_rtsp_client_send_request:
* @client: a #GstRTSPClient
* @session: a #GstRTSPSession to send the request to or %NULL
* @message: The #GstRTSPMessage to send
*
* Send a request message to the client.
*/
void
gst_rtsp_client_send_request (GstRTSPClient * client, GstRTSPSession * session,
GstRTSPMessage * message)
{
send_response (client, session, message, FALSE);
}
static GstRTSPResult
do_send_message (GstRTSPClient * client, GstRTSPMessage * message,
gboolean close, gpointer user_data)

View file

@ -163,6 +163,9 @@ void gst_rtsp_client_set_send_func (GstRTSPClient *client,
GstRTSPResult gst_rtsp_client_handle_message (GstRTSPClient *client,
GstRTSPMessage *message);
void gst_rtsp_client_send_request (GstRTSPClient * client,
GstRTSPSession *session,
GstRTSPMessage *message);
guint gst_rtsp_client_attach (GstRTSPClient *client,
GMainContext *context);