mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-23 20:05:11 +00:00
obs-source-tracker: Use the output flags instead of flags
This fixes being able to filter by the source type (audio, video).
This commit is contained in:
parent
f902f8f0f5
commit
18b8cc2b5c
1 changed files with 2 additions and 2 deletions
|
@ -143,13 +143,13 @@ bool obs::source_tracker::filter_sources(std::string name, obs_source_t* source)
|
|||
|
||||
bool obs::source_tracker::filter_audio_sources(std::string name, obs_source_t* source)
|
||||
{
|
||||
uint32_t flags = obs_source_get_flags(source);
|
||||
uint32_t flags = obs_source_get_output_flags(source);
|
||||
return !(flags & OBS_SOURCE_AUDIO) || (obs_source_get_type(source) != OBS_SOURCE_TYPE_INPUT);
|
||||
}
|
||||
|
||||
bool obs::source_tracker::filter_video_sources(std::string name, obs_source_t* source)
|
||||
{
|
||||
uint32_t flags = obs_source_get_flags(source);
|
||||
uint32_t flags = obs_source_get_output_flags(source);
|
||||
return !(flags & OBS_SOURCE_VIDEO) || (obs_source_get_type(source) != OBS_SOURCE_TYPE_INPUT);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue