From ec5e4fb6ca95e6e4da5f41ec9445974b182b62aa Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 21 Apr 2020 11:16:22 +0200 Subject: [PATCH] DeckLink disp.: use BMDVideoOutputConversionMode needs cast 0 needs explicit cast to BMDVideoOutputConversionMode in Windows. --- src/video_display/decklink.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video_display/decklink.cpp b/src/video_display/decklink.cpp index ae1e05fec..5c3490efe 100644 --- a/src/video_display/decklink.cpp +++ b/src/video_display/decklink.cpp @@ -845,7 +845,7 @@ static void *display_decklink_init(struct module *parent, const char *fmt, unsig BMDAudioOutputAnalogAESSwitch audioConnection = (BMDAudioOutputAnalogAESSwitch) 0; BMDVideo3DPackingFormat HDMI3DPacking = (BMDVideo3DPackingFormat) 0; int audio_consumer_levels = -1; - BMDVideoOutputConversionMode conversion_mode = 0; + BMDVideoOutputConversionMode conversion_mode = (BMDVideoOutputConversionMode) 0; bool use1080p_not_psf = true; if (!blackmagic_api_version_check()) { @@ -1090,7 +1090,7 @@ static void *display_decklink_init(struct module *parent, const char *fmt, unsig goto error; } - if (conversion_mode != 0) { + if (conversion_mode != (BMDVideoOutputConversionMode) 0) { result = deckLinkConfiguration->SetInt(bmdDeckLinkConfigVideoOutputConversionMode, conversion_mode); if (result != S_OK) { log_msg(LOG_LEVEL_ERROR, "Unable to set conversion mode.\n");