changeset 3019:3f47065d84be

Convert null output plugin to new API, lowest priority and reporting no devices so it is never auto-selected.
author Tony Vroon <chainsaw@gentoo.org>
date Thu, 09 Apr 2009 21:41:40 +0100
parents ddc7d43d2574
children fdcf79446ddf
files src/null/null.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/null/null.c	Thu Apr 09 21:09:54 2009 +0100
+++ b/src/null/null.c	Thu Apr 09 21:41:40 2009 +0100
@@ -39,12 +39,13 @@
 
 #define ELAPSED_TIME (offset_time + g_timer_elapsed(timer, NULL) * 1000)
 
-static void null_init(void)
+static OutputPluginInitStatus null_init(void)
 {
 	mcs_handle_t *db;
 	db = aud_cfg_db_open();
 	aud_cfg_db_get_bool(db, "null", "real_time", &real_time);
 	aud_cfg_db_close(db);
+	return OUTPUT_PLUGIN_INIT_NO_DEVICES;
 }
 
 static void null_about(void)
@@ -228,6 +229,7 @@
 OutputPlugin null_op =
 {
 	.description = "Null Output Plugin",
+	.probe_priority = 0,
 	.init = null_init,
 	.about = null_about,
 	.configure = null_configure,