Skip to content

Commit

Permalink
obs-filters: Add libSpeexDSP guard to method
Browse files Browse the repository at this point in the history
`method` should be used under the same condition as they were defined. That is when both `LIBRNNOISE_ENABLED` and  `LIBSPEEXDSP_ENABLED` are defined.
  • Loading branch information
tommyvct committed Jul 3, 2021
1 parent 16a49eb commit a6325ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/obs-filters/noise-suppress-filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1008,9 +1008,11 @@ static obs_properties_t *noise_suppress_properties(void *data)
ppts, S_NVAFX_INTENSITY, TEXT_NVAFX_INTENSITY, 0.0f, 1.0f,
0.01f);

#if defined(LIBRNNOISE_ENABLED) && defined(LIBSPEEXDSP_ENABLED)
if (!nvafx_loaded) {
obs_property_list_item_disable(method, 2, true);
}
#endif

#endif
return ppts;
Expand Down

0 comments on commit a6325ba

Please sign in to comment.