提交 b86fdae4 编写于 作者: J jp9000

libobs: Don't clear audio on ts jump (seamless loops)

There's technically no need to clear the audio data here, nor is there
any need to try to trick the timestamp in to a different position.  It
can simple just reset the audio timing.

Prevents a possible case where audio data might be deleted when it's not
necessary to delete any.
上级 78db7ebc
......@@ -1162,7 +1162,6 @@ static void source_output_audio_data(obs_source_t *source,
diff > MAX_TS_VAR) {
reset_audio_timing(source, data->timestamp,
os_time);
reset_audio_data(source, os_time);
in.timestamp = data->timestamp + source->timing_adjust;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册