output_plugin: added methods enable() and disable()

With these methods, an output plugin can allocate some global
resources only if it is actually enabled.  The method enable() is
called after daemonization, which allows for more sophisticated
resource allocation during that method.
This commit is contained in:
Max Kellermann
2009-10-23 10:55:52 +02:00
parent c426a0bc5c
commit e53ca368a5
15 changed files with 213 additions and 1 deletions

View File

@@ -374,6 +374,10 @@ int main(int argc, char *argv[])
config_global_check();
/* enable all audio outputs (if not already done by
playlist_state_restore() */
pc_update_audio();
/* run the main loop */
g_main_loop_run(main_loop);