mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
client: Configure transport after creating session media
The default implementation of configure_client_transport() in rtsp-client uses the session media when it chooses channels for interleaved traffic. https://bugzilla.gnome.org/show_bug.cgi?id=739112
This commit is contained in:
parent
a455181aff
commit
088eee6590
1 changed files with 4 additions and 4 deletions
|
@ -1810,10 +1810,6 @@ handle_setup_request (GstRTSPClient * client, GstRTSPContext * ctx)
|
||||||
if (!parse_transport (transport, stream, ct))
|
if (!parse_transport (transport, stream, ct))
|
||||||
goto unsupported_transports;
|
goto unsupported_transports;
|
||||||
|
|
||||||
/* update the client transport */
|
|
||||||
if (!klass->configure_client_transport (client, ctx, ct))
|
|
||||||
goto unsupported_client_transport;
|
|
||||||
|
|
||||||
/* parse the keymgmt */
|
/* parse the keymgmt */
|
||||||
if (gst_rtsp_message_get_header (ctx->request, GST_RTSP_HDR_KEYMGMT,
|
if (gst_rtsp_message_get_header (ctx->request, GST_RTSP_HDR_KEYMGMT,
|
||||||
&keymgmt, 0) == GST_RTSP_OK) {
|
&keymgmt, 0) == GST_RTSP_OK) {
|
||||||
|
@ -1841,6 +1837,10 @@ handle_setup_request (GstRTSPClient * client, GstRTSPContext * ctx)
|
||||||
|
|
||||||
ctx->sessmedia = sessmedia;
|
ctx->sessmedia = sessmedia;
|
||||||
|
|
||||||
|
/* update the client transport */
|
||||||
|
if (!klass->configure_client_transport (client, ctx, ct))
|
||||||
|
goto unsupported_client_transport;
|
||||||
|
|
||||||
/* set in the session media transport */
|
/* set in the session media transport */
|
||||||
trans = gst_rtsp_session_media_set_transport (sessmedia, stream, ct);
|
trans = gst_rtsp_session_media_set_transport (sessmedia, stream, ct);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue