mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
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:
parent
aab1198516
commit
d2dab47085
2 changed files with 18 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue