#include "DeckLinkAPI_h.h"
#else
#include "DeckLinkAPI.h"
+typedef const char* BSTR;
#endif
#define SAFE_RELEASE(V) if (V) { V->Release(); V = NULL; }
{
const char* timecodeString = 0;
-#ifdef WIN32
if ( timecode->GetString( (BSTR*) &timecodeString ) == S_OK )
-#else
- if ( timecode->GetString( &timecodeString ) == S_OK )
-#endif
{
mlt_properties_set( MLT_FRAME_PROPERTIES( frame ), "meta.attr.vitc.markup", timecodeString );
mlt_log_debug( getProducer(), "timecode %s\n", timecodeString );
if ( decklink->QueryInterface( IID_IDeckLinkInput, (void**) &decklinkInput ) == S_OK )
{
char *name = NULL;
- if ( decklink->GetModelName( (const char**) &name ) == S_OK )
+ if ( decklink->GetModelName( (BSTR*) &name ) == S_OK )
{
const char *format = "device.%d";
char *key = (char*) calloc( 1, strlen( format ) + 1 );