coreaudio: add back underrun handling

Regression from 370f785ef6

This is only used as debug purpose.
This commit is contained in:
Thomas Guillem 2022-12-15 15:20:12 +01:00 committed by Jean-Baptiste Kempf
parent bc8627ed7c
commit 871ad624ac
1 changed files with 1 additions and 0 deletions

View File

@ -212,6 +212,7 @@ ca_Render(audio_output_t *p_aout, uint64_t host_time,
vlc_frame_t *f = p_sys->p_out_chain;
if (f == NULL)
{
p_sys->i_underrun_size += bytes;
memset(data, 0, bytes);
lock_unlock(p_sys);
return;