[vlc-commits] dash: remove unused XML validator

Rémi Denis-Courmont git at videolan.org
Thu Jul 2 20:12:50 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul  2 20:51:49 2015 +0300| [31f25084eee8450b54582a4c6b76c081dda10932] | committer: Rémi Denis-Courmont

dash: remove unused XML validator

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

 modules/demux/dash/xml/DOMParser.cpp |   10 +---------
 modules/demux/dash/xml/DOMParser.h   |    1 -
 2 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/modules/demux/dash/xml/DOMParser.cpp b/modules/demux/dash/xml/DOMParser.cpp
index f24fe50..8d8cc32 100644
--- a/modules/demux/dash/xml/DOMParser.cpp
+++ b/modules/demux/dash/xml/DOMParser.cpp
@@ -39,7 +39,6 @@ using namespace dash::mpd;
 DOMParser::DOMParser    (stream_t *stream) :
     root( NULL ),
     stream( stream ),
-    vlc_xml( NULL ),
     vlc_reader( NULL )
 {
 }
@@ -49,8 +48,6 @@ DOMParser::~DOMParser   ()
     delete this->root;
     if(this->vlc_reader)
         xml_ReaderDelete(this->vlc_reader);
-    if ( this->vlc_xml )
-        xml_Delete( this->vlc_xml );
 }
 
 Node*   DOMParser::getRootNode              ()
@@ -59,12 +56,7 @@ Node*   DOMParser::getRootNode              ()
 }
 bool    DOMParser::parse                    ()
 {
-    this->vlc_xml = xml_Create(this->stream);
-
-    if(!this->vlc_xml)
-        return false;
-
-    this->vlc_reader = xml_ReaderCreate(this->vlc_xml, this->stream);
+    this->vlc_reader = xml_ReaderCreate(this->stream, this->stream);
 
     if(!this->vlc_reader)
         return false;
diff --git a/modules/demux/dash/xml/DOMParser.h b/modules/demux/dash/xml/DOMParser.h
index deca094..e9dd1d5 100644
--- a/modules/demux/dash/xml/DOMParser.h
+++ b/modules/demux/dash/xml/DOMParser.h
@@ -54,7 +54,6 @@ namespace dash
                 Node                *root;
                 stream_t            *stream;
 
-                xml_t               *vlc_xml;
                 xml_reader_t        *vlc_reader;
 
                 Node*   processNode             ();



More information about the vlc-commits mailing list