vlc | branch: master | Marvin Scholz <epira...@gmail.com> | Mon Jul 18 23:25:19 2016 +0200| [2e2451190620a05b75db906c6e3049135601dc68] | committer: Jean-Baptiste Kempf
lua: Add parse_stream method to simplexml Add a function to simplexml that allows parsing a stream, which the module already does but is not exposing this at all, for no obvious reason. Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2e2451190620a05b75db906c6e3049135601dc68 --- share/lua/modules/simplexml.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/lua/modules/simplexml.lua b/share/lua/modules/simplexml.lua index 851b7e6..36971a5 100644 --- a/share/lua/modules/simplexml.lua +++ b/share/lua/modules/simplexml.lua @@ -90,6 +90,10 @@ function parse_url(url) return parsexml(vlc.stream(url)) end +function parse_stream(stream) + return parsexml(stream) +end + function parse_string(str) return parsexml(vlc.memory_stream(str)) end _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits