[vlc-devel] [PATCH] input: fix a crash when loading an invalid mrl

Ludovic Fauvet etix at videolan.org
Mon Oct 31 02:17:17 CET 2011


---
 src/input/input.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index b43df74..a91c935 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -3115,6 +3115,9 @@ static void MRLSections( const char *p,
 
     int title_start, chapter_start, title_end, chapter_end;
 
+    if( !p )
+        return;
+
     if( *p != '-' )
         p = MRLSeekPoint( p, &title_start, &chapter_start );
     else
-- 
1.7.7.1




More information about the vlc-devel mailing list