Skip to content

Commit

Permalink
DeckLink disp.: use BMDVideoOutputConversionMode needs cast
Browse files Browse the repository at this point in the history
0 needs explicit cast to BMDVideoOutputConversionMode in Windows.
  • Loading branch information
MartinPulec committed Jun 8, 2020
1 parent 73b66fd commit ec5e4fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video_display/decklink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit ec5e4fb

Please sign in to comment.