提交 91bfb53e 编写于 作者: J jp9000

libobs: Fix audio filters killing video on source

When an audio filter is applied to a video source that also has
accompanying audio, it would cause the video from the source to stop
rendering.

The original code this was from was to prevent audio-only sources from
rendering video, but I neglected to make sure that this would not apply
to filters, and thus when an audio filter is on a source with video, the
code would kill the video.
上级 231dfbd9
......@@ -1399,7 +1399,8 @@ void obs_source_video_render(obs_source_t *source)
{
if (!source) return;
if ((source->info.output_flags & OBS_SOURCE_VIDEO) == 0)
if (source->info.type != OBS_SOURCE_TYPE_FILTER &&
(source->info.output_flags & OBS_SOURCE_VIDEO) == 0)
return;
if (!source->context.data || !source->enabled) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册