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:
Michael Fabian 'Xaymar' Dirks 2019-03-01 20:38:49 +01:00
parent f902f8f0f5
commit 18b8cc2b5c

View file

@ -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);
}