[vlc-devel] [PATCH] lua: Add parse_stream method to simplexml

Marvin Scholz epirat07 at gmail.com
Mon Jul 18 23:25:19 CEST 2016


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.
---
 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
-- 
2.7.4 (Apple Git-66)



More information about the vlc-devel mailing list