decklinkvideosink: Cast result of bitwise-or of multiple enum values to the enum again

In C++ the bitwise-or results in an int, and ints are not implicitely
cast to enums.

See https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/merge_requests/25#note_78122
This commit is contained in:
Sebastian Dröge 2018-11-13 10:02:57 +02:00
parent 09f814a00a
commit 1d0d395b5c

View file

@ -484,7 +484,7 @@ gst_decklink_video_sink_set_caps (GstBaseSink * bsink, GstCaps * caps)
flags = bmdVideoOutputRP188; flags = bmdVideoOutputRP188;
if (self->caption_line > 0) if (self->caption_line > 0)
flags |= bmdVideoOutputVANC; flags = (BMDVideoOutputFlags) (flags | bmdVideoOutputVANC);
ret = self->output->output->EnableVideoOutput (mode->mode, flags); ret = self->output->output->EnableVideoOutput (mode->mode, flags);
if (ret != S_OK) { if (ret != S_OK) {