Commit 3841c085 authored by Pierre Ynard's avatar Pierre Ynard

Win32: revert to old rc interface

See #4455. The lua interface merely polls, reads and writes on file
descriptors 0 and 1, and expects it to work. There is no support for
spawning a console and redirecting/getting file descriptors to it, and
file descriptors are mixed with socket descriptors and polled, which
won't work on windows. Until something is done about it, revert to the
old rc interface
parent 2efec37e
...@@ -201,6 +201,9 @@ vlc_module_begin () ...@@ -201,6 +201,9 @@ vlc_module_begin ()
set_capability( "interface", 20 ) set_capability( "interface", 20 )
set_callbacks( Activate, Deactivate ) set_callbacks( Activate, Deactivate )
#ifdef WIN32
add_shortcut( "rc" )
#endif
vlc_module_end () vlc_module_end ()
/***************************************************************************** /*****************************************************************************
......
...@@ -71,7 +71,9 @@ static const struct ...@@ -71,7 +71,9 @@ static const struct
const char *psz_name; const char *psz_name;
} pp_shortcuts[] = { } pp_shortcuts[] = {
{ "luarc", "rc" }, { "luarc", "rc" },
#ifndef WIN32
{ "rc", "rc" }, { "rc", "rc" },
#endif
{ "luahotkeys", "hotkeys" }, { "luahotkeys", "hotkeys" },
/* { "hotkeys", "hotkeys" }, */ /* { "hotkeys", "hotkeys" }, */
{ "luatelnet", "telnet" }, { "luatelnet", "telnet" },
......
...@@ -144,7 +144,9 @@ vlc_module_begin () ...@@ -144,7 +144,9 @@ vlc_module_begin ()
add_submodule () add_submodule ()
set_description( N_("Lua Interface Module (shortcuts)") ) set_description( N_("Lua Interface Module (shortcuts)") )
add_shortcut( "luarc" ) add_shortcut( "luarc" )
#ifndef WIN32
add_shortcut( "rc" ) add_shortcut( "rc" )
#endif
set_capability( "interface", 25 ) set_capability( "interface", 25 )
set_callbacks( Open_LuaIntf, Close_LuaIntf ) set_callbacks( Open_LuaIntf, Close_LuaIntf )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment