mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
rtsp-client: Report RECORD and ANNOUNCE as supported in the OPTIONS
This commit is contained in:
parent
b90d4ba917
commit
9e92a0307c
2 changed files with 8 additions and 6 deletions
|
@ -2557,6 +2557,7 @@ handle_options_request (GstRTSPClient * client, GstRTSPContext * ctx)
|
||||||
GST_RTSP_OPTIONS |
|
GST_RTSP_OPTIONS |
|
||||||
GST_RTSP_PAUSE |
|
GST_RTSP_PAUSE |
|
||||||
GST_RTSP_PLAY |
|
GST_RTSP_PLAY |
|
||||||
|
GST_RTSP_RECORD | GST_RTSP_ANNOUNCE |
|
||||||
GST_RTSP_SETUP |
|
GST_RTSP_SETUP |
|
||||||
GST_RTSP_GET_PARAMETER | GST_RTSP_SET_PARAMETER | GST_RTSP_TEARDOWN;
|
GST_RTSP_GET_PARAMETER | GST_RTSP_SET_PARAMETER | GST_RTSP_TEARDOWN;
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
#include <rtsp-client.h>
|
#include <rtsp-client.h>
|
||||||
|
|
||||||
static gchar * session_id;
|
static gchar *session_id;
|
||||||
static gint cseq;
|
static gint cseq;
|
||||||
static guint expected_session_timeout = 60;
|
static guint expected_session_timeout = 60;
|
||||||
static const gchar *expected_unsupported_header;
|
static const gchar *expected_unsupported_header;
|
||||||
|
@ -177,7 +177,7 @@ teardown_client (GstRTSPClient * client)
|
||||||
g_object_unref (client);
|
g_object_unref (client);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gchar*
|
static gchar *
|
||||||
check_requirements_cb (GstRTSPClient * client, GstRTSPContext * ctx,
|
check_requirements_cb (GstRTSPClient * client, GstRTSPContext * ctx,
|
||||||
gchar ** req, gpointer user_data)
|
gchar ** req, gpointer user_data)
|
||||||
{
|
{
|
||||||
|
@ -393,9 +393,11 @@ test_option_response_200 (GstRTSPClient * client, GstRTSPMessage * response,
|
||||||
methods = gst_rtsp_options_from_text (str);
|
methods = gst_rtsp_options_from_text (str);
|
||||||
fail_if (methods == 0);
|
fail_if (methods == 0);
|
||||||
fail_unless (methods == (GST_RTSP_DESCRIBE |
|
fail_unless (methods == (GST_RTSP_DESCRIBE |
|
||||||
|
GST_RTSP_ANNOUNCE |
|
||||||
GST_RTSP_OPTIONS |
|
GST_RTSP_OPTIONS |
|
||||||
GST_RTSP_PAUSE |
|
GST_RTSP_PAUSE |
|
||||||
GST_RTSP_PLAY |
|
GST_RTSP_PLAY |
|
||||||
|
GST_RTSP_RECORD |
|
||||||
GST_RTSP_SETUP |
|
GST_RTSP_SETUP |
|
||||||
GST_RTSP_GET_PARAMETER | GST_RTSP_SET_PARAMETER | GST_RTSP_TEARDOWN));
|
GST_RTSP_GET_PARAMETER | GST_RTSP_SET_PARAMETER | GST_RTSP_TEARDOWN));
|
||||||
|
|
||||||
|
@ -572,8 +574,7 @@ send_teardown (GstRTSPClient * client)
|
||||||
"rtsp://localhost/test") == GST_RTSP_OK);
|
"rtsp://localhost/test") == GST_RTSP_OK);
|
||||||
str = g_strdup_printf ("%d", cseq);
|
str = g_strdup_printf ("%d", cseq);
|
||||||
gst_rtsp_message_take_header (&request, GST_RTSP_HDR_CSEQ, str);
|
gst_rtsp_message_take_header (&request, GST_RTSP_HDR_CSEQ, str);
|
||||||
gst_rtsp_message_add_header (&request, GST_RTSP_HDR_SESSION,
|
gst_rtsp_message_add_header (&request, GST_RTSP_HDR_SESSION, session_id);
|
||||||
session_id);
|
|
||||||
gst_rtsp_client_set_send_func (client, test_teardown_response_200,
|
gst_rtsp_client_set_send_func (client, test_teardown_response_200,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
fail_unless (gst_rtsp_client_handle_message (client,
|
fail_unless (gst_rtsp_client_handle_message (client,
|
||||||
|
|
Loading…
Reference in a new issue