[vlc-commits] [Git][videolan/vlc][master] 2 commits: globalhotkeys: start the win32 hotkeys as autorun
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Thu Feb 1 22:23:58 UTC 2024
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
7befacdd by Steve Lhomme at 2024-02-01T22:07:18+00:00
globalhotkeys: start the win32 hotkeys as autorun
Just like the XCB ones. The autorun is used when using the default interface.
- - - - -
82f3c433 by Steve Lhomme at 2024-02-01T22:07:18+00:00
winvlc: remove libvlc_add_intf for globalhotkeys
It will be added automatically with the default interface autorun.
- - - - -
2 changed files:
- bin/winvlc.c
- modules/control/globalhotkeys/win32.c
Changes:
=====================================
bin/winvlc.c
=====================================
@@ -246,7 +246,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, "globalhotkeys,none");
libvlc_add_intf (vlc, NULL);
libvlc_playlist_play (vlc);
=====================================
modules/control/globalhotkeys/win32.c
=====================================
@@ -42,6 +42,11 @@ static void Close( vlc_object_t *p_this );
static void *Thread( void *p_data );
LRESULT CALLBACK WMHOTKEYPROC( HWND, UINT, WPARAM, LPARAM );
+static void AutoRun(libvlc_int_t *libvlc)
+{
+ intf_Create(libvlc, MODULE_STRING);
+}
+
/*****************************************************************************
* Module descriptor
*****************************************************************************/
@@ -52,6 +57,10 @@ vlc_module_begin()
set_capability( "interface", 0 )
set_callbacks( Open, Close )
add_shortcut( "globalhotkeys" )
+
+ add_submodule()
+ set_capability("autorun", 10)
+ set_callback(AutoRun)
vlc_module_end()
struct intf_sys_t
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/8f1439234baf250c767ba2b84139c30b362a7032...82f3c4334049eb38cc8abe160025fff5116cd782
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/8f1439234baf250c767ba2b84139c30b362a7032...82f3c4334049eb38cc8abe160025fff5116cd782
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list