summaryrefslogtreecommitdiff
path: root/plugins.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-11-28 17:24:14 +0100
committerGravatar waker <wakeroid@gmail.com>2010-11-28 17:24:14 +0100
commit0cf1d57bc3dab11f773d23a25db0c3d18f6cfe52 (patch)
treefb00bd49e8bdbccbe6643cddf3319878396be237 /plugins.c
parent78cebdb0a267effe32fe196c04124692b04ec9db (diff)
ported supereq to new api; converted to float; added reentrancy support
Diffstat (limited to 'plugins.c')
-rw-r--r--plugins.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/plugins.c b/plugins.c
index cf6e68db..79ad3675 100644
--- a/plugins.c
+++ b/plugins.c
@@ -87,6 +87,7 @@ static DB_functions_t deadbeef_api = {
.streamer_get_apx_bitrate = streamer_get_apx_bitrate,
.streamer_get_current_fileinfo = streamer_get_current_fileinfo,
.streamer_get_current_playlist = streamer_get_current_playlist,
+ .streamer_get_dsp_chain = streamer_get_dsp_chain,
// folders
.get_config_dir = plug_get_config_dir,
.get_prefix = plug_get_prefix,
@@ -777,15 +778,6 @@ plug_load_all (void) {
}
}
}
- // connect plugins
- for (plug = plugins; plug; plug = plug->next) {
- if (plug->plugin->connect) {
- if (plug->plugin->connect () < 0) {
- plug->plugin->inactive = 1;
- }
- }
- }
-
// trace ("numplugins: %d, numdecoders: %d, numvfs: %d\n", numplugins, numdecoders, numvfs);
g_plugins[numplugins] = NULL;
g_decoder_plugins[numdecoders] = NULL;
@@ -801,6 +793,19 @@ plug_load_all (void) {
}
void
+plug_connect_all (void) {
+ plugin_t *plug;
+ for (plug = plugins; plug; plug = plug->next) {
+ if (plug->plugin->connect) {
+ if (plug->plugin->connect () < 0) {
+ plug->plugin->inactive = 1;
+ }
+ }
+ }
+
+}
+
+void
plug_unload_all (void) {
trace ("plug_unload_all\n");
plugin_t *p;