aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/flac_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:09 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:09 +0200
commit6120635f06ecadcc1ab0d59a54b6842a78e11746 (patch)
tree0c3f2b0f07a50ea2a75dc1a6e641e0805192be96 /src/inputPlugins/flac_plugin.c
parenta68ef497f518c8d7e53ff30733cc749fea505321 (diff)
downloadmpd-6120635f06ecadcc1ab0d59a54b6842a78e11746.tar.gz
mpd-6120635f06ecadcc1ab0d59a54b6842a78e11746.tar.xz
mpd-6120635f06ecadcc1ab0d59a54b6842a78e11746.zip
added decoder_plugin_register()
With the functions decoder_plugin_register() and decoder_plugin_unregister(), decoder plugins can register a "secondary" plugin, like the flac input plugin does this for "oggflac".
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/flac_plugin.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/inputPlugins/flac_plugin.c b/src/inputPlugins/flac_plugin.c
index c0456791f..9b1c8d85d 100644
--- a/src/inputPlugins/flac_plugin.c
+++ b/src/inputPlugins/flac_plugin.c
@@ -22,7 +22,6 @@
#include "../utils.h"
#include "../log.h"
-#include "../decoder_list.h"
/* this code was based on flac123, from flac-tools */
@@ -533,7 +532,7 @@ static int flac_plugin_init(void)
INPUT_PLUGIN_STREAM_FILE;
oggflacPlugin.suffixes = oggflac_suffixes;
oggflacPlugin.mime_types = oggflac_mime_types;
- decoder_plugin_load(&oggflacPlugin);
+ decoder_plugin_register(&oggflacPlugin);
return 1;
}