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:
jp9000
2015-07-09 01:58:12 -07:00
parent 231dfbd975
commit 91bfb53ed5
+2 -1
View File
@@ -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) {