Commit 8672e257 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: adaptative: provide xmlreader reset ability

parent a1c9926d
......@@ -65,6 +65,15 @@ bool DOMParser::parse ()
return true;
}
bool DOMParser::reset(stream_t *s)
{
delete root;
root = NULL;
stream = s;
vlc_reader = xml_ReaderReset(vlc_reader, s);
return !!vlc_reader;
}
Node* DOMParser::processNode()
{
const char *data;
......
......@@ -45,6 +45,7 @@ namespace adaptative
virtual ~DOMParser ();
bool parse ();
bool reset (stream_t *);
Node* getRootNode ();
void print ();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment