libobs: Fix audio monitor output error in macOS

master
tududweb 2022-07-25 02:38:07 +08:00 committed by Patrick Heyer
parent c1740e3636
commit 25d84f40d6
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,10 @@ static void on_audio_playback(void *param, obs_source_t *source,
return;
}
if (os_atomic_load_long(&source->activate_refs) == 0) {
return;
}
uint8_t *resample_data[MAX_AV_PLANES];
uint32_t resample_frames;
uint64_t ts_offset;