[vlc-devel] commit: RTSP authentication with DSS (Rolf Ahrenberg )

git version control git at videolan.org
Sat Nov 1 14:31:28 CET 2008


vlc | branch: 0.9-bugfix | Rolf Ahrenberg <Rolf.Ahrenberg at saunalahti.com> | Thu Oct 30 12:33:31 2008 +0200| [bef4a088f300803a5955bcfbb62e647ead578563] | committer: Rémi Denis-Courmont 

RTSP authentication with DSS

This patch enables a working RTSP authentication with the Darwin
streaming server (DSS).

When the VLC is compiled against Live555 streaming media library
(live.2008.09.02), the authentication fails when both username and
password are asked via a VLC dialog as the DSS requires authorization
also for SETUP, PLAY, and TEARDOWN commands and the necessary
information isn't delivered correctly to the Live555 library. The VLC
used Live555 interface in such a way, that the authenticator was valid
only for the DESCRIBE when I debugged the library with vlc-0.9.2. The
problem still exists in vlc-0.9.5.

Signed-off-by: Rolf Ahrenberg <Rolf.Ahrenberg at saunalahti.fi>
Signed-off-by: Rémi Denis-Courmont <rdenis at simphalempin.com>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bef4a088f300803a5955bcfbb62e647ead578563
---

 modules/demux/live555.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index a82520e..f5dfafe 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -555,7 +555,7 @@ describe:
         p_sys->b_get_param = strstr( psz_options, "GET_PARAMETER" ) ? true : false ;
     delete [] psz_options;
 
-    p_sdp = p_sys->rtsp->describeURL( psz_url, &authenticator,
+    p_sdp = p_sys->rtsp->describeWithPassword( psz_url, (const char*)psz_user, (const char*)psz_pwd,
                          var_GetBool( p_demux, "rtsp-kasenna" ) );
     if( p_sdp == NULL )
     {




More information about the vlc-devel mailing list