mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
obs-vst: Remove min and max macro workaround
This commit is contained in:
parent
7b2a6351b0
commit
edf753b31e
@ -96,7 +96,7 @@ void VSTPlugin::createChannelBuffers(size_t count)
|
||||
cleanupChannelBuffers();
|
||||
|
||||
int blocksize = BLOCK_SIZE;
|
||||
numChannels = (std::max)((size_t)0, count);
|
||||
numChannels = std::max((size_t)0, count);
|
||||
|
||||
if (numChannels > 0) {
|
||||
inputs = (float **)bmalloc(sizeof(float *) * numChannels);
|
||||
@ -170,8 +170,7 @@ void VSTPlugin::loadEffectFromPath(const std::string &path)
|
||||
return;
|
||||
}
|
||||
|
||||
int maxchans =
|
||||
(std::max)(effect->numInputs, effect->numOutputs);
|
||||
int maxchans = std::max(effect->numInputs, effect->numOutputs);
|
||||
// sanity check
|
||||
if (maxchans < 0 || maxchans > 256) {
|
||||
blog(LOG_WARNING,
|
||||
|
@ -22,6 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include <QWidget>
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define NOMINMAX
|
||||
#include <QWindow>
|
||||
#include <Windows.h>
|
||||
#elif defined(__linux__)
|
||||
|
Loading…
Reference in New Issue
Block a user