mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-01 15:49:51 +08:00
libobs: Fix audio-only output did not receive raw_audio
This commit is contained in:
@@ -2093,6 +2093,11 @@ static void default_raw_video_callback(void *param, struct video_data *frame)
|
||||
static bool prepare_audio(struct obs_output *output,
|
||||
const struct audio_data *old, struct audio_data *new)
|
||||
{
|
||||
if ((output->info.flags & OBS_OUTPUT_VIDEO) == 0) {
|
||||
*new = *old;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!output->video_start_ts) {
|
||||
pthread_mutex_lock(&output->pause.mutex);
|
||||
output->video_start_ts = output->pause.last_video_ts;
|
||||
|
||||
Reference in New Issue
Block a user