plugins: Use explicit type conversion from enums

MSVC warns about this because it's a C++ compiler, and this actually
results in useful things such as the incorrect 'gboolean' return value
for functions that return GstFlowReturn, so let's do explicit
conversions to reduce the noise and increase its efficacy.
This commit is contained in:
Nirbheek Chauhan 2016-10-27 09:25:20 +05:30 committed by Tim-Philipp Müller
parent 503822eb20
commit 48fcf632bd

View file

@ -247,7 +247,8 @@ strip_mview_fields (GstCaps * incaps, GstVideoMultiviewFlags keep_flags)
GstVideoMultiviewFlags flags, mask;
gst_structure_remove_field (st, "multiview-mode");
if (gst_structure_get_flagset (st, "multiview-flags", &flags, &mask)) {
if (gst_structure_get_flagset (st, "multiview-flags", (guint*) &flags,
(guint*) &mask)) {
flags &= keep_flags;
mask = keep_flags;
gst_structure_set (st, "multiview-flags",