Commit 683f96fa authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

aout: remove redundant parameter

Since audio filters and visualization all have a priority of zero,
forced module loading has no effects.
parent 77021c97
......@@ -43,7 +43,7 @@
#include "aout_internal.h"
static filter_t *CreateFilter (vlc_object_t *obj, const char *type,
const char *name, bool force,
const char *name,
const audio_sample_format_t *infmt,
const audio_sample_format_t *outfmt)
{
......@@ -56,7 +56,7 @@ static filter_t *CreateFilter (vlc_object_t *obj, const char *type,
filter->fmt_in.i_codec = infmt->i_format;
filter->fmt_out.audio = *outfmt;
filter->fmt_out.i_codec = outfmt->i_format;
filter->p_module = module_need (filter, type, name, force);
filter->p_module = module_need (filter, type, name, false);
if (filter->p_module == NULL)
{
/* If probing failed, formats shall not have been modified. */
......@@ -74,14 +74,14 @@ static filter_t *FindConverter (vlc_object_t *obj,
const audio_sample_format_t *infmt,
const audio_sample_format_t *outfmt)
{
return CreateFilter (obj, "audio converter", NULL, false, infmt, outfmt);
return CreateFilter (obj, "audio converter", NULL, infmt, outfmt);
}
static filter_t *FindResampler (vlc_object_t *obj,
const audio_sample_format_t *infmt,
const audio_sample_format_t *outfmt)
{
return CreateFilter (obj, "audio resampler", "$audio-resampler", false,
return CreateFilter (obj, "audio resampler", "$audio-resampler",
infmt, outfmt);
}
......@@ -343,7 +343,7 @@ static int AppendFilter(vlc_object_t *obj, const char *type, const char *name,
return -1;
}
filter_t *filter = CreateFilter (obj, type, name, true, infmt, outfmt);
filter_t *filter = CreateFilter (obj, type, name, infmt, outfmt);
if (filter == NULL)
{
msg_Err (obj, "cannot add user %s \"%s\" (skipped)", type, name);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment