Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Romain Vimont
VLC
Commits
0c2d3c67
Commit
0c2d3c67
authored
4 years ago
by
Rémi Denis-Courmont
Browse files
Options
Downloads
Patches
Plain Diff
hotkeys: use autorun to start
parent
3d0587bf
Loading
Loading
Loading
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bin/darwinvlc.m
+0
-2
0 additions, 2 deletions
bin/darwinvlc.m
bin/vlc.c
+0
-1
0 additions, 1 deletion
bin/vlc.c
bin/winvlc.c
+0
-1
0 additions, 1 deletion
bin/winvlc.c
modules/control/hotkeys.c
+9
-0
9 additions, 0 deletions
modules/control/hotkeys.c
with
9 additions
and
4 deletions
bin/darwinvlc.m
+
0
−
2
View file @
0c2d3c67
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
bin/vlc.c
+
0
−
1
View file @
0c2d3c67
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
bin/winvlc.c
+
0
−
1
View file @
0c2d3c67
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
modules/control/hotkeys.c
+
9
−
0
View file @
0c2d3c67
...
...
@@ -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
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment