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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user