Fix a crash if VLC is not able to connect to a RTSP server.
ok sthen@
This commit is contained in:
parent
9b5b2d8f21
commit
5602513893
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.75 2008/09/04 22:58:23 brad Exp $
|
||||
# $OpenBSD: Makefile,v 1.76 2008/09/05 01:01:00 brad Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
@ -6,7 +6,7 @@ COMMENT-main= videolan client; multimedia player
|
||||
|
||||
V= 0.8.6i
|
||||
DISTNAME= vlc-${V}
|
||||
PKGNAME-main= ${DISTNAME}p0
|
||||
PKGNAME-main= ${DISTNAME}p1
|
||||
CATEGORIES= x11
|
||||
MASTER_SITES= http://download.videolan.org/pub/videolan/vlc/${V}/
|
||||
|
||||
|
13
x11/vlc/patches/patch-modules_demux_live555_cpp
Normal file
13
x11/vlc/patches/patch-modules_demux_live555_cpp
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-modules_demux_live555_cpp,v 1.1 2008/09/05 01:01:00 brad Exp $
|
||||
--- modules/demux/live555.cpp.orig Tue Sep 2 00:48:25 2008
|
||||
+++ modules/demux/live555.cpp Tue Sep 2 00:49:08 2008
|
||||
@@ -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/%*s%3u", &i_code );
|
||||
}
|
||||
msg_Dbg( p_demux, "DESCRIBE failed with %d: [%s]", i_code, psz_error );
|
||||
|
Loading…
Reference in New Issue
Block a user