{
GstRTSPResult res = GST_RTSP_OK;
GstRTSPMessage request = { 0 };
- GstRTSPUrl *url = NULL;
- gchar *url_str = NULL;
-
- GstRTSPClient *parent_client = GST_RTSP_CLIENT_CAST (client);
- GstRTSPConnection *connection =
- gst_rtsp_client_get_connection (parent_client);
-
- url = gst_rtsp_connection_get_url (connection);
- if (url == NULL) {
- GST_ERROR_OBJECT (client, "Failed to get connection URL");
- res = GST_RTSP_ERROR;
- goto error;
- }
-
- url_str = gst_rtsp_url_get_request_uri (url);
- if (url_str == NULL) {
- GST_ERROR_OBJECT (client, "Failed to get connection URL");
- res = GST_RTSP_ERROR;
- goto error;
- }
- res = prepare_trigger_request (client, &request, type, url_str);
- g_free (url_str);
+ res = prepare_trigger_request (client, &request, type, (gchar *) "rtsp://localhost/wfd1.0");
if (GST_RTSP_OK != res) {
GST_ERROR_OBJECT (client, "Failed to prepare M5 request....\n");