mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
decklink: Fix compilation on Windows by properly using COM strings there
This commit is contained in:
parent
f784fda162
commit
861cb49895
1 changed files with 7 additions and 3 deletions
|
@ -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 ();
|
||||
|
|
Loading…
Reference in a new issue