Commit a38c1cb0 authored by Rafaël Carré's avatar Rafaël Carré

Loads D-Bus control interface in one instance mode only if compiled with D-Bus support

parent 04cc0ad9
...@@ -859,10 +859,12 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, char *ppsz_argv[] ) ...@@ -859,10 +859,12 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, char *ppsz_argv[] )
*/ */
VLC_AddIntf( 0, "hotkeys,none", VLC_FALSE, VLC_FALSE ); VLC_AddIntf( 0, "hotkeys,none", VLC_FALSE, VLC_FALSE );
#ifdef HAVE_DBUS_3
/* loads dbus control interface if in one-instance mode /* loads dbus control interface if in one-instance mode
* we do it only when playlist exists, because dbus module needs it */ * we do it only when playlist exists, because dbus module needs it */
if( config_GetInt( p_libvlc, "one-instance" ) ) if( config_GetInt( p_libvlc, "one-instance" ) )
VLC_AddIntf( 0, "dbus,none", VLC_FALSE, VLC_FALSE ); VLC_AddIntf( 0, "dbus,none", VLC_FALSE, VLC_FALSE );
#endif
/* /*
* If needed, load the Xscreensaver interface * If needed, load the Xscreensaver interface
......
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