Commit 6145aa22 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Add missing unicast parameter in the Transport: response

So-called "RTSP" VoD remains extremely broken,
and I have no intention to fix it.
parent 05480492
...@@ -1019,19 +1019,19 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl, ...@@ -1019,19 +1019,19 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
if( strstr( psz_transport, "MP2T/H2221/UDP" ) ) if( strstr( psz_transport, "MP2T/H2221/UDP" ) )
{ {
httpd_MsgAdd( answer, "Transport", httpd_MsgAdd( answer, "Transport",
"MP2T/H2221/UDP;client_port=%d-%d", "MP2T/H2221/UDP;unicast;client_port=%d-%d",
i_port, i_port + 1 ); i_port, i_port + 1 );
} }
else if( strstr( psz_transport, "RAW/RAW/UDP" ) ) else if( strstr( psz_transport, "RAW/RAW/UDP" ) )
{ {
httpd_MsgAdd( answer, "Transport", httpd_MsgAdd( answer, "Transport",
"RAW/RAW/UDP;client_port=%d-%d", "RAW/RAW/UDP;unicast;client_port=%d-%d",
i_port, i_port + 1 ); i_port, i_port + 1 );
} }
} }
else else
httpd_MsgAdd( answer, "Transport", httpd_MsgAdd( answer, "Transport",
"RTP/AVP/UDP;client_port=%d-%d", "RTP/AVP/UDP;unicast;client_port=%d-%d",
i_port, i_port + 1 ); i_port, i_port + 1 );
} }
else /* TODO strstr( psz_transport, "interleaved" ) ) */ else /* TODO strstr( psz_transport, "interleaved" ) ) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment