[vlc-commits] demux: adaptative: hide errors on non strict parsing

Francois Cartegnie git at videolan.org
Tue Nov 3 13:52:11 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov  3 13:45:19 2015 +0100| [6f90434be8ed5bed42eb32a2716c472ade1f2142] | committer: Francois Cartegnie

demux: adaptative: hide errors on non strict parsing

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

 modules/demux/adaptative/xml/DOMParser.cpp |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/demux/adaptative/xml/DOMParser.cpp b/modules/demux/adaptative/xml/DOMParser.cpp
index a994c76..51a45e4 100644
--- a/modules/demux/adaptative/xml/DOMParser.cpp
+++ b/modules/demux/adaptative/xml/DOMParser.cpp
@@ -66,7 +66,11 @@ bool    DOMParser::parse                    (bool b)
     if(!vlc_reader && !(vlc_reader = xml_ReaderCreate(stream, stream)))
         return false;
 
+    const int i_flags = vlc_reader->i_flags;
+    if(!b)
+        vlc_reader->i_flags |= OBJECT_FLAGS_QUIET;
     root = processNode(b);
+    vlc_reader->i_flags = i_flags;
     if ( root == NULL )
         return false;
 



More information about the vlc-commits mailing list