Crash Bug with Declick Audio filter: Cannot set sink channel counts

What is your operating system?
Win 11

What is your Shotcut version (see Help > About Shotcut)?
24.06.26

Can you repeat the problem? If so, what are the steps?
Looks like the Declick Audio filter is bugged and causing crashes on whichever audio file I try. It was working in the previous version 24.04 as I had just upgraded. I tried it on Ogg and Mp3 files and it crashes each time as soon as I move my timeline to it. It even crashes on an empty file when just opening, adding the audio file to the timeline, then adding the Declick Audio filter to it.

Here are the applicable AppLog sections where I add the filter:
To an MP3 file:
[Debug ] Filter::AddCommand::redo “Add Declick Audio filter” 1
[Debug ] AttachedFiltersModel::doAddService 1
[Debug ] AttachedFiltersModel::remove 1
[Debug ] Filter::RemoveCommand::redo “Remove Declick Audio filter” 1
[Debug ] AttachedFiltersModel::doRemoveService 1 -1 10
[Error ] [link avfilter.adeclick] Init: f32le 2c 48000Hz
[Error ] [link avfilter.adeclick] Cannot set sink channel counts

To an OGG file:
[Debug ] Filter::AddCommand::redo “Add Declick Audio filter” 0
[Debug ] AttachedFiltersModel::doAddService 0
[Info ] [link swresample] 2(stereo) f32le 44100Hz → 2(stereo) f32le 48000Hz
[Error ] [link avfilter.adeclick] Init: float 2c 48000Hz
[Error ] [link avfilter.adeclick] Cannot set sink channel counts

Thanks for your report. This is fixed for the next release.

:+1: Awesome!