Skip to content

coreaudio: don't call AudioUnit API from the render callback

Thomas Guillem requested to merge tguillem/vlc:audiounit-fix_deadlo into master

It is very unlikely that AudioUnitGetProperty(kAudioUnitProperty_Latency) can change midstream (contrary to [AVInstance outputLatency]), so only fetch this latency when starting the AudioUnit.

This fixes a deadlock between the render callback and AudioUnitStop().

Fixes #27591 (closed)

Merge request reports

Loading