From 48fcf632bdc60fddf0da2c1a988436a6bf32a7da Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 27 Oct 2016 09:25:20 +0530 Subject: [PATCH] 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. --- ext/gl/gstglstereosplit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/gl/gstglstereosplit.c b/ext/gl/gstglstereosplit.c index 1eaa440..744a7f2 100644 --- a/ext/gl/gstglstereosplit.c +++ b/ext/gl/gstglstereosplit.c @@ -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", -- 2.7.4