vlc | branch: master | Ludovic Fauvet <[email protected]> | Mon Oct 31 02:17:17 
2011 +0100| [1575796ce7f14190594b9d14e27c88ae130cf8b5] | committer: 
Jean-Baptiste Kempf

input: fix a crash when loading an invalid mrl

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 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

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to