Commit bc1c318f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

aout: tolerate lack of a resampler if the input and output rates match

Synchronization will not be so good (as with S/PDIF), but audio will
still work. Anyway, this should hardly ever happen since the ugly
resampler supports all linear formats.
parent fdd2b7b1
......@@ -574,7 +574,7 @@ int aout_FiltersNew (audio_output_t *aout,
assert (AOUT_FMTS_IDENTICAL(&output_format, outfmt));
owner->resampler = FindResampler (VLC_OBJECT(aout), &input_format,
&output_format);
if (owner->resampler == NULL)
if (owner->resampler == NULL && input_format.i_rate != outfmt->i_rate)
{
msg_Err (aout, "cannot setup a resampler");
goto error;
......
Markdown is supported
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