[vlc-devel] commit: live555: do not crash if RTSP connection fails ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu Aug 21 18:27:31 CEST 2008
vlc | branch: 0.8.6-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Aug 21 19:29:40 2008 +0300| [10042d24bf25918bc3def9171e488c9d0bb5f965] | committer: Rémi Denis-Courmont
live555: do not crash if RTSP connection fails
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=10042d24bf25918bc3def9171e488c9d0bb5f965
---
modules/demux/live555.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index 3c75243..34a9baf 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -829,7 +829,8 @@ describe:
else
{
const char *psz_tmp = strstr( psz_error, "RTSP" );
- sscanf( psz_tmp, "RTSP/%*s%3u", &i_code );
+ if( psz_tmp )
+ sscanf( psz_tmp, "RTSP/%*u.%*u %3u", &i_code );
}
msg_Dbg( p_demux, "DESCRIBE failed with %d: [%s]", i_code, psz_error );
More information about the vlc-devel
mailing list