X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=plugins%2Fdsp%2Faout_dsp.c;h=68468e26e11e32c646007cc5e549108d79acb0e2;hb=583c6553f6761421260d86bbc21b5b3169c04319;hp=a7421f22c08312fa8cc93c4f51706aa191f5e861;hpb=26ee312a6f7584df6ebd66404ef674192400a869;p=vlc diff --git a/plugins/dsp/aout_dsp.c b/plugins/dsp/aout_dsp.c index a7421f22c0..68468e26e1 100644 --- a/plugins/dsp/aout_dsp.c +++ b/plugins/dsp/aout_dsp.c @@ -21,6 +21,9 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. *****************************************************************************/ +#define MODULE_NAME dsp +#include "modules_inner.h" + /* TODO: * * - an aout_GetFormats() function @@ -54,7 +57,7 @@ #include "common.h" /* boolean_t, byte_t */ #include "threads.h" #include "mtime.h" -#include "plugins.h" +#include "tests.h" #include "audio_output.h" /* aout_thread_t */ @@ -90,7 +93,7 @@ static void aout_Close ( aout_thread_t *p_aout ); * Functions exported as capabilities. They are declared as static so that * we don't pollute the namespace too much. *****************************************************************************/ -void aout_getfunctions( function_list_t * p_function_list ) +void _M( aout_getfunctions )( function_list_t * p_function_list ) { p_function_list->pf_probe = aout_Probe; p_function_list->functions.aout.pf_open = aout_Open; @@ -120,6 +123,12 @@ static int aout_Probe( probedata_t *p_data ) /* Otherwise, there are good chances we can use this plugin, return 100. */ close( i_fd ); + + if( TestMethod( AOUT_METHOD_VAR, "dsp" ) ) + { + return( 999 ); + } + return( 100 ); }