vlc/vlc-1.2 | branch: master | Hugo Beauzée-Luyssen <beauz...@gmail.com> | Sun 
Dec 25 00:50:52 2011 +0100| [89c2aa13ad86fe68d833cbe8b7a145c3f4c62df0] | 
committer: Jean-Baptiste Kempf

dash: Don't crash when XML parsing fails.

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>
(cherry picked from commit 8ceecb115d38220c5653aa202ef0b28a3fc6605e)

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=89c2aa13ad86fe68d833cbe8b7a145c3f4c62df0
---

 modules/stream_filter/dash/xml/DOMParser.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/stream_filter/dash/xml/DOMParser.cpp 
b/modules/stream_filter/dash/xml/DOMParser.cpp
index a860236..4736fba 100644
--- a/modules/stream_filter/dash/xml/DOMParser.cpp
+++ b/modules/stream_filter/dash/xml/DOMParser.cpp
@@ -65,6 +65,8 @@ bool    DOMParser::parse                    ()
         return false;
 
     this->root = this->processNode();
+    if ( this->root == NULL )
+        return false;
 
     return true;
 }

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to