mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-24 20:48:52 +02:00
scaletempo: load preferred resampler when changing pitch
This commit is contained in:
parent
9b3edfbbac
commit
0f2b5cde70
@ -483,8 +483,7 @@ static filter_t *ResamplerCreate(filter_t *p_filter)
|
|||||||
p_resampler->fmt_out = p_filter->fmt_in;
|
p_resampler->fmt_out = p_filter->fmt_in;
|
||||||
p_resampler->fmt_out.audio.i_rate = atomic_load( &p_sys->rate_shift );
|
p_resampler->fmt_out.audio.i_rate = atomic_load( &p_sys->rate_shift );
|
||||||
aout_FormatPrepare( &p_resampler->fmt_out.audio );
|
aout_FormatPrepare( &p_resampler->fmt_out.audio );
|
||||||
p_resampler->p_module = module_need( p_resampler, "audio resampler", NULL,
|
p_resampler->p_module = module_need_var(p_resampler, "audio resampler", "audio-resampler");
|
||||||
false );
|
|
||||||
|
|
||||||
if( p_resampler->p_module == NULL )
|
if( p_resampler->p_module == NULL )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user