From 1d61239879e12ccbd0ac80fabfd272e8b785e8cf Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Wed, 28 Aug 2013 22:00:28 +0200 Subject: osx: cleanup, use of proper APIs; added new GUI plugin type to the enum in deadbeef.h --- plugins.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins.c') diff --git a/plugins.c b/plugins.c index 54515491..6b032c05 100644 --- a/plugins.c +++ b/plugins.c @@ -942,7 +942,7 @@ plug_load_all (void) { // start plugins plugin_t *prev = NULL; for (plug = plugins; plug;) { - if (plug->plugin->start) { + if (plug->plugin->type != DB_PLUGIN_GUI && plug->plugin->start) { if (plug->plugin->start () < 0) { fprintf (stderr, "plugin %s failed to start, deactivated.\n", plug->plugin->name); if (plug->plugin->stop) { @@ -995,7 +995,7 @@ plug_connect_all (void) { if (plug->plugin->disconnect) { plug->plugin->disconnect (); } - if (plug->plugin->stop) { + if (plug->plugin->type != DB_PLUGIN_GUI && plug->plugin->stop) { plug->plugin->stop (); } if (plug->handle) { -- cgit v1.2.3