mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-31 02:13:51 +08:00
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.
This commit is contained in:
+2
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user