[vlc-devel] commit: Automatically insert globalhotkeys when available. (Laurent Aimar )
git version control
git at videolan.org
Sun Jan 25 19:24:34 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Jan 25 19:23:53 2009 +0100| [3e97bc6eafb412ea3bdc53437e343b119a0a3307] | committer: Laurent Aimar
Automatically insert globalhotkeys when available.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3e97bc6eafb412ea3bdc53437e343b119a0a3307
---
src/libvlc.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/libvlc.c b/src/libvlc.c
index ecfd6f0..e9e43bb 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -898,9 +898,8 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
* Always load the hotkeys interface if it exists
*/
libvlc_InternalAddIntf( p_libvlc, "hotkeys,none" );
-#ifdef WIN32
- libvlc_InternalAddIntf( p_libvlc, "globalhotkeys,none" );
-#endif
+ if( module_exists( "globalhotkeys" ) )
+ libvlc_InternalAddIntf( p_libvlc, "globalhotkeys,none" );
#ifdef HAVE_DBUS
/* loads dbus control interface if in one-instance mode
More information about the vlc-devel
mailing list