decklink: Fix building with MSYS2's MinGW

Reported and tested by Philippe Renon.

https://bugzilla.gnome.org/show_bug.cgi?id=784943
This commit is contained in:
Nirbheek Chauhan 2017-07-20 18:09:15 +05:30
parent 6e3f493a96
commit a163dff91d
2 changed files with 2 additions and 2 deletions

View file

@ -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
;;
*)

View file

@ -34,10 +34,10 @@
#ifdef G_OS_WIN32
#include "win/DeckLinkAPI.h"
#include <stdio.h>
#include <comutil.h>
#define bool BOOL
#define COMSTR_T BSTR
/* MinGW does not have comsuppw.lib, so no _com_util::ConvertBSTRToString */
# ifdef __MINGW32__