summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-01-27 19:23:48 +0200
committerSebastian Dröge <sebastian@centricular.com>2017-01-31 14:56:34 +0200
commit861cb4989557d975e743e981836533dc4c30e6a1 (patch)
treea83600d50ea250b5caa880fa800286d7eec95a31 /sys
parentf784fda1628db7b7963c28d5cb54471ef5212627 (diff)
downloadgstreamer-plugins-bad-861cb4989557d975e743e981836533dc4c30e6a1.tar.gz
decklink: Fix compilation on Windows by properly using COM strings there
Diffstat (limited to 'sys')
-rw-r--r--sys/decklink/gstdecklink.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp
index d094ed22d..28cd9e748 100644
--- a/sys/decklink/gstdecklink.cpp
+++ b/sys/decklink/gstdecklink.cpp
@@ -967,14 +967,16 @@ init_devices (gpointer data)
GST_DEBUG ("Input %d supports:", i);
while ((ret = mode_iter->Next (&mode)) == S_OK) {
- const char *name;
+ const char* name;
- mode->GetName (&name);
+ mode->GetName ((COMSTR_T *) &name);
+ CONVERT_COM_STRING (name);
GST_DEBUG (" %s mode: 0x%08x width: %ld height: %ld"
" fields: 0x%08x flags: 0x%08x", name,
(int) mode->GetDisplayMode (), mode->GetWidth (),
mode->GetHeight (), (int) mode->GetFieldDominance (),
(int) mode->GetFlags ());
+ FREE_COM_STRING (name);
mode->Release ();
}
mode_iter->Release ();
@@ -1005,12 +1007,14 @@ init_devices (gpointer data)
while ((ret = mode_iter->Next (&mode)) == S_OK) {
const char *name;
- mode->GetName (&name);
+ mode->GetName ((COMSTR_T *) &name);
+ CONVERT_COM_STRING (name);
GST_DEBUG (" %s mode: 0x%08x width: %ld height: %ld"
" fields: 0x%08x flags: 0x%08x", name,
(int) mode->GetDisplayMode (), mode->GetWidth (),
mode->GetHeight (), (int) mode->GetFieldDominance (),
(int) mode->GetFlags ());
+ FREE_COM_STRING (name);
mode->Release ();
}
mode_iter->Release ();