decklink: Fix linking on MinGW
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 4 May 2017 23:00:59 +0000 (04:30 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Fri, 5 May 2017 12:19:22 +0000 (17:49 +0530)
commit8865b440d98a158f612f514459e37701805fbece
tree47335c357620b02e0c42d2c76e3f4fc064d5c8ea
parent3d4c428e419d835bfa2458f3d26a374f7dadad79
decklink: Fix linking on MinGW

MinGW does not provide comsupp.lib, so there's no implementation of
_com_util::ConvertBSTRToString. Use a fallback implementation that
uses wcstombs() instead.

On MinGW we also truncate the name to 100 chars which should be fine.
sys/decklink/gstdecklink.cpp
sys/decklink/gstdecklink.h
sys/decklink/meson.build