client test: expect any port in transport

setup_multicast_client sets a 5000-5010 range for the client
ports, it is incorrect to expect the transport to always use
5000-5001

Fixes #73
This commit is contained in:
Mathieu Duponchelle 2019-07-17 15:51:08 +02:00 committed by Mathieu Duponchelle
parent 571f119fea
commit 507e6f1db2

View file

@ -1833,7 +1833,7 @@ do_test_scale_and_speed (const gchar * scale, const gchar * speed)
gst_rtsp_message_add_header (&request, GST_RTSP_HDR_TRANSPORT, gst_rtsp_message_add_header (&request, GST_RTSP_HDR_TRANSPORT,
"RTP/AVP;multicast"); "RTP/AVP;multicast");
expected_transport = "RTP/AVP;multicast;destination=233.252.0.1;" expected_transport = "RTP/AVP;multicast;destination=233.252.0.1;"
"ttl=1;port=5000-5001;mode=\"PLAY\""; "ttl=1;port=.*;mode=\"PLAY\"";
gst_rtsp_client_set_send_func (client, test_setup_response_200, NULL, NULL); gst_rtsp_client_set_send_func (client, test_setup_response_200, NULL, NULL);
fail_unless (gst_rtsp_client_handle_message (client, fail_unless (gst_rtsp_client_handle_message (client,
&request) == GST_RTSP_OK); &request) == GST_RTSP_OK);