Commit cdbdb9ca authored by Steven Kramer's avatar Steven Kramer Committed by Rémi Denis-Courmont

Use Live555 'double authorization' for RTSP-over-HTTP

Signed-off-by: default avatarRémi Denis-Courmont <rdenis@simphalempin.com>
parent 1fb01424
......@@ -552,6 +552,17 @@ describe:
psz_options = p_sys->rtsp->sendOptionsCmd( psz_url, psz_user, psz_pwd,
&authenticator );
#endif
if( psz_options == NULL && authenticator.realm() != NULL )
{
// try again, with the realm set this time
#if LIVEMEDIA_LIBRARY_VERSION_INT >= 1223337600
psz_options = p_sys->rtsp->sendOptionsCmd( psz_url, psz_user, psz_pwd,
&authenticator, timeout );
#else
psz_options = p_sys->rtsp->sendOptionsCmd( psz_url, psz_user, psz_pwd,
&authenticator );
#endif
}
if( psz_options )
{
p_sys->b_get_param = strstr( psz_options, "GET_PARAMETER" ) ? true : false ;
......
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