Browse Source

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.
jp9000 10 years ago
parent
commit
91bfb53ed5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      libobs/obs-source.c

+ 2 - 1
libobs/obs-source.c

@@ -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) {