mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
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:
parent
503822eb20
commit
48fcf632bd
1 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue