X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Flibvlc-common.c;h=88a28e2d394c741c7dfdf5864b764fa81739e82a;hb=c404c42de5421c486d8c1cb90fdf64263184c839;hp=1720ad055d69ee2c91596c62ea997a10e8bb5f6f;hpb=d9d6fddf57dfeda4e48ea33a85392a621ade32bb;p=vlc diff --git a/src/libvlc-common.c b/src/libvlc-common.c index 1720ad055d..88a28e2d39 100644 --- a/src/libvlc-common.c +++ b/src/libvlc-common.c @@ -578,13 +578,14 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, char *ppsz_argv[] ) /* FIXME: could be replaced by using Unix sockets */ #ifdef HAVE_DBUS_3 + dbus_threads_init_default(); + if( config_GetInt( p_libvlc, "one-instance" ) ) { /* Initialise D-Bus interface, check for other instances */ DBusConnection *p_conn; DBusError dbus_error; - dbus_threads_init_default(); dbus_error_init( &dbus_error ); /* connect to the session bus */