videoio: fix API/ABI_VERSION macros before plugin_api.hpp
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Thu, 14 Jan 2021 10:36:10 +0000 (10:36 +0000)
committerAlexander Alekhin <alexander.a.alekhin@gmail.com>
Thu, 14 Jan 2021 10:36:10 +0000 (10:36 +0000)
modules/videoio/src/cap_mfx_plugin.cpp
modules/videoio/src/videoio_registry.cpp

index 846245f..d537963 100644 (file)
@@ -7,6 +7,9 @@
 #include <string>
 #include "cap_mfx_reader.hpp"
 #include "cap_mfx_writer.hpp"
+
+#define ABI_VERSION 0
+#define API_VERSION 0
 #include "plugin_api.hpp"
 
 using namespace std;
index 3ee1bab..3eaa00c 100644 (file)
@@ -16,8 +16,6 @@
 #include "cap_mfx_writer.hpp"
 #endif
 
-#include "plugin_api.hpp"
-
 // All WinRT versions older than 8.0 should provide classes used for video support
 #if defined(WINRT) && !defined(WINRT_8_0) && defined(__cplusplus_winrt)
 #   include "cap_winrt_capture.hpp"