From a163dff91dd556c41c5c3f95c98f31bc784d7019 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 20 Jul 2017 18:09:15 +0530 Subject: [PATCH] decklink: Fix building with MSYS2's MinGW Reported and tested by Philippe Renon. https://bugzilla.gnome.org/show_bug.cgi?id=784943 --- configure.ac | 2 +- sys/decklink/gstdecklink.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 0107501..5bd76a0 100644 --- a/configure.ac +++ b/configure.ac @@ -2256,7 +2256,7 @@ AG_GST_CHECK_FEATURE(DECKLINK, [decklink], decklink, [ *-mingw*) HAVE_DECKLINK=yes DECKLINK_CXXFLAGS= - DECKLINK_LIBS="-loleaut32" + DECKLINK_LIBS="-lole32 -loleaut32" HAVE_DECKLINK_WIN=yes ;; *) diff --git a/sys/decklink/gstdecklink.h b/sys/decklink/gstdecklink.h index a630f2b..80ec1b9 100644 --- a/sys/decklink/gstdecklink.h +++ b/sys/decklink/gstdecklink.h @@ -34,10 +34,10 @@ #ifdef G_OS_WIN32 #include "win/DeckLinkAPI.h" +#include #include #define bool BOOL - #define COMSTR_T BSTR /* MinGW does not have comsuppw.lib, so no _com_util::ConvertBSTRToString */ # ifdef __MINGW32__ -- 2.7.4