Skip to content
Snippets Groups Projects
Commit 0c2d3c67 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

hotkeys: use autorun to start

parent 3d0587bf
Loading
......@@ -273,8 +273,6 @@ int main(int i_argc, const char *ppsz_argv[])
libvlc_set_app_id(vlc, "org.VideoLAN.VLC", PACKAGE_VERSION, PACKAGE_NAME);
libvlc_set_user_agent(vlc, "VLC media player", "VLC/"PACKAGE_VERSION);
libvlc_add_intf(vlc, "hotkeys,none");
if (libvlc_add_intf(vlc, NULL)) {
fprintf(stderr, "VLC cannot start any interface. Exiting.\n");
goto out;
......
......@@ -235,7 +235,6 @@ int main(int argc, const char *argv[])
libvlc_set_app_id (vlc, "org.VideoLAN.VLC", PACKAGE_VERSION, PACKAGE_NAME);
libvlc_set_user_agent (vlc, "VLC media player", "VLC/"PACKAGE_VERSION);
libvlc_add_intf (vlc, "hotkeys,none");
#if !defined (__OS2__)
libvlc_add_intf (vlc, "globalhotkeys,none");
#endif
......
......@@ -257,7 +257,6 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
libvlc_set_app_id (vlc, "org.VideoLAN.VLC", PACKAGE_VERSION,
PACKAGE_NAME);
libvlc_set_user_agent (vlc, "VLC media player", "VLC/"PACKAGE_VERSION);
libvlc_add_intf (vlc, "hotkeys,none");
libvlc_add_intf (vlc, "globalhotkeys,none");
libvlc_add_intf (vlc, NULL);
libvlc_playlist_play (vlc);
......
......@@ -1268,6 +1268,11 @@ Close(vlc_object_t *this)
free(sys);
}
static void AutoRun(libvlc_int_t *libvlc)
{
intf_Create(libvlc, MODULE_STRING);
}
vlc_module_begin ()
set_shortname(N_("Hotkeys"))
set_description(N_("Hotkeys management interface"))
......@@ -1275,4 +1280,8 @@ vlc_module_begin ()
set_callbacks(Open, Close)
set_category(CAT_INTERFACE)
set_subcategory(SUBCAT_INTERFACE_HOTKEYS)
add_submodule()
set_capability("autorun", 20)
set_callback(AutoRun)
vlc_module_end ()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment