audio gradually out of sync whith pulseaudio-dlna output



Hello,
I am using kodi (flatpak version) on ubuntu 24.04
My audio output is pulsaudio-dlna.
It works fine with VLC, I have a delay of 800ms which I can correct. And it remains the same during the whole movie, tested with multiple movies.
On kodi, at the begining, I can setup a delay of 800ms and it’s ok, but this delay is not constant. Sometimes the delay is bigger and bigger during the movie. Sometimes the delay changes when I read another movie.
What can I do ?
Thank you