From 1d0d395b5c30b12c4bbadc8b2addcbb6f3b9d6d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 13 Nov 2018 10:02:57 +0200 Subject: [PATCH] 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 --- sys/decklink/gstdecklinkvideosink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/decklink/gstdecklinkvideosink.cpp b/sys/decklink/gstdecklinkvideosink.cpp index 58ceb9c2bd..8eaa54aba4 100644 --- a/sys/decklink/gstdecklinkvideosink.cpp +++ b/sys/decklink/gstdecklinkvideosink.cpp @@ -484,7 +484,7 @@ gst_decklink_video_sink_set_caps (GstBaseSink * bsink, GstCaps * caps) flags = bmdVideoOutputRP188; if (self->caption_line > 0) - flags |= bmdVideoOutputVANC; + flags = (BMDVideoOutputFlags) (flags | bmdVideoOutputVANC); ret = self->output->output->EnableVideoOutput (mode->mode, flags); if (ret != S_OK) {