# HG changeset patch # User Tony Vroon # Date 1239309700 -3600 # Node ID 3f47065d84be82d0d7527bd84ff77865ce986f72 # Parent ddc7d43d2574203c21d4ebe4c01e8ae04ed8715d Convert null output plugin to new API, lowest priority and reporting no devices so it is never auto-selected. diff -r ddc7d43d2574 -r 3f47065d84be src/null/null.c --- 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,