]> git.sesse.net Git - vlc/commitdiff
input: fix a crash when loading an invalid mrl
authorLudovic Fauvet <etix@videolan.org>
Mon, 31 Oct 2011 01:17:17 +0000 (02:17 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 8 Nov 2011 01:41:21 +0000 (02:41 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/input/input.c

index b43df74f2120254915aef9667467f07bbd77e015..a91c9355872b0ec1fbf0ea1ee188658270b46554 100644 (file)
@@ -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