mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
libobs: Mark audio filters as async
Async filters and effect filters are really two different classes of filters, so it's important that audio filters be marked as async.
This commit is contained in:
parent
2b4fdb19ad
commit
b33d95999f
@ -473,6 +473,12 @@ void obs_register_source_s(const struct obs_source_info *info, size_t size)
|
||||
|
||||
memcpy(&data, info, size);
|
||||
|
||||
/* mark audio-only filters as an async filter categorically */
|
||||
if (data.type == OBS_SOURCE_TYPE_FILTER) {
|
||||
if ((data.output_flags & OBS_SOURCE_VIDEO) == 0)
|
||||
data.output_flags |= OBS_SOURCE_ASYNC;
|
||||
}
|
||||
|
||||
darray_push_back(sizeof(struct obs_source_info), array, &data);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user