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".
This commit is contained in:
Max Kellermann
2008-08-26 08:27:09 +02:00
parent a68ef497f5
commit 6120635f06
3 changed files with 16 additions and 2 deletions

View File

@@ -18,6 +18,7 @@
*/
#include "decoder_internal.h"
#include "decoder_list.h"
#include "audio.h"
#include "utils.h"
@@ -25,6 +26,16 @@
#include "playerData.h"
#include "gcc.h"
void decoder_plugin_register(struct decoder_plugin *plugin)
{
decoder_plugin_load(plugin);
}
void decoder_plugin_unregister(struct decoder_plugin *plugin)
{
decoder_plugin_unload(plugin);
}
void decoder_initialized(struct decoder * decoder,
const AudioFormat * audio_format,
float total_time)