DeckLink cap.: set conn explicitly to Unspecified

bmdVideoConnectionUnspecified is still 0 but it makes it clear that the
value is recognized by BMD API (as opposite to 0 in conversion mode).
This commit is contained in:
Martin Pulec
2022-04-01 09:32:19 +02:00
parent 27037afed2
commit 451fbcc33c

View File

@@ -175,7 +175,8 @@ struct vidcap_decklink_state {
unsigned int grab_audio:1; /* wheather we process audio or not */
bool stereo{false}; /* for eg. DeckLink HD Extreme, Quad doesn't set this !!! */
bool sync_timecode{false}; /* use timecode when grabbing from multiple inputs */
BMDVideoConnection connection{};
static_assert(bmdVideoConnectionUnspecified == BMD_OPT_DEFAULT, "Connection unspecified is not 0!");
BMDVideoConnection connection{bmdVideoConnectionUnspecified};
int audio_consumer_levels{-1}; ///< 0 false, 1 true, -1 default
BMDVideoInputConversionMode conversion_mode{};
BMDDeckLinkCapturePassthroughMode passthrough; // 0 means don't set