diff --git a/effects/internal/vsthost.cpp b/effects/internal/vsthost.cpp index c42125d94..e56393fe8 100644 --- a/effects/internal/vsthost.cpp +++ b/effects/internal/vsthost.cpp @@ -1,5 +1,7 @@ #include "vsthost.h" +#ifdef _WIN32 + // adapted from http://teragonaudio.com/article/How-to-make-your-own-VST-host.html #include @@ -264,3 +266,5 @@ void VSTHost::change_plugin() { } show_interface_btn->setEnabled(plugin != nullptr); } + +#endif diff --git a/effects/internal/vsthost.h b/effects/internal/vsthost.h index e36105cfd..13a99a816 100644 --- a/effects/internal/vsthost.h +++ b/effects/internal/vsthost.h @@ -1,6 +1,8 @@ #ifndef VSTHOSTWIN_H #define VSTHOSTWIN_H +#ifdef _WIN32 + #include "project/effect.h" #include "io/crossplatformlib.h" @@ -47,4 +49,6 @@ private: ModulePtr modulePtr; }; +#endif + #endif // VSTHOSTWIN_H diff --git a/olive.pro b/olive.pro index 97f4572ea..8ce6d9483 100644 --- a/olive.pro +++ b/olive.pro @@ -239,9 +239,6 @@ FORMS += win32 { RC_FILE = packaging/windows/resources.rc LIBS += -lavutil -lavformat -lavcodec -lavfilter -lswscale -lswresample -lopengl32 -luser32 - - SOURCES += - HEADERS += } mac { diff --git a/project/effect.cpp b/project/effect.cpp index 4ba72f4d8..ddf2748ad 100644 --- a/project/effect.cpp +++ b/project/effect.cpp @@ -693,10 +693,10 @@ void Effect::startEffect() { void Effect::endEffect() { if (bound) glslProgram->release(); - bound = false; + bound = false; } -void Effect::process_image(double, uint8_t *input, uint8_t *output, int) {} +void Effect::process_image(double, uint8_t *, uint8_t *, int){} Effect* Effect::copy(Clip* c) { Effect* copy = create_effect(c, meta); diff --git a/project/effect.h b/project/effect.h index cc48d9d72..6779501c4 100644 --- a/project/effect.h +++ b/project/effect.h @@ -1,4 +1,4 @@ -#ifndef EFFECT_H +#ifndef EFFECT_H #define EFFECT_H #include @@ -159,7 +159,7 @@ public: const char* ffmpeg_filter; - virtual void process_image(double timecode, uint8_t* input, uint8_t* output, int size); + virtual void process_image(double timecode, uint8_t* input, uint8_t* output, int size); virtual void process_shader(double timecode, GLTextureCoords&); virtual void process_coords(double timecode, GLTextureCoords& coords, int data); virtual GLuint process_superimpose(double timecode);