mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
09f814a00a
commit
1d0d395b5c
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue