[vlc-commits] luasd: fix loading with "luasd" module alias

Pierre Ynard git at videolan.org
Wed Nov 16 09:29:21 CET 2016


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed Nov 16 09:27:30 2016 +0100| [683a93d957f8a6d503d8f77c771ac6ef145e617d] | committer: Pierre Ynard

luasd: fix loading with "luasd" module alias

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

 modules/lua/services_discovery.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/lua/services_discovery.c b/modules/lua/services_discovery.c
index 66cf278..1a17a85 100644
--- a/modules/lua/services_discovery.c
+++ b/modules/lua/services_discovery.c
@@ -108,7 +108,8 @@ int Open_LuaSD( vlc_object_t *p_this )
     if( !( p_sys = malloc( sizeof( services_discovery_sys_t ) ) ) )
         return VLC_ENOMEM;
 
-    if( !strcmp( p_sd->psz_name, "lua" ) )
+    if( !strcmp( p_sd->psz_name, "lua" ) ||
+        !strcmp( p_sd->psz_name, "luasd" ) )
     {
         // We want to load the module name "lua"
         // This module can be used to load lua script not registered



More information about the vlc-commits mailing list