[vlc-devel] [PATCH 2/2] lua: http: Expose renderers
Pierre Ynard
linkfanel at yahoo.fr
Fri Aug 21 13:43:07 CEST 2020
> diff --git a/share/lua/http/custom.lua b/share/lua/http/custom.lua
> index d1551f53dd..e75715d79a 100644
> --- a/share/lua/http/custom.lua
> +++ b/share/lua/http/custom.lua
> @@ -18,3 +18,13 @@ _G.dialogs = function(...)
> end
>
> _G.vlm = vlc.vlm()
> +
> +local _rd = nil
> +
> +_G.get_renderer_discovery = function()
> + if not _rd then
> + _rd = vlc.rd.create("mdns_renderer")
> + end
> + return _rd
> +end
> +
If local _rd actually works for storing, okay.
Can we have an explanation, and preferably a comment in the code, why
mdns is used and hardcoded here? What if the mdns module wasn't built?
--
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."
More information about the vlc-devel
mailing list