]> git.sesse.net Git - vlc/blobdiff - modules/misc/lua/intf.c
lua_intf: also provide the --rc-host option for backward compatibility.
[vlc] / modules / misc / lua / intf.c
index ea7b2af69384d64a786b56d29ac553b932ecef2c..3fea2731d0108ffd1ef6307849cb9d640e4b5fec 100644 (file)
@@ -273,6 +273,18 @@ int Open_LuaIntf( vlc_object_t *p_this )
             free( psz_telnet_passwd );
             free( psz_telnet_host );
         }
+        else if( !strcmp( psz_name, "rc" ) )
+        {
+            char *psz_rc_host = var_CreateGetNonEmptyString( p_intf, "rc-host" );
+            if( psz_rc_host )
+            {
+                char *psz_esc_host = config_StringEscape( psz_rc_host );
+                asprintf( &psz_config, "rc={host='%s'}", psz_esc_host );
+
+                free( psz_esc_host );
+                free( psz_rc_host );
+            }
+        }
     }
 
     if( psz_config )