From 55297bdbad7d5410866b72bee43f32860f9ed903 Mon Sep 17 00:00:00 2001 From: Scott D Phillips Date: Fri, 11 Nov 2016 10:45:01 -0800 Subject: [PATCH] Use intermediate guint when handling GstVideoMultiviewFlags The underlying integer type of the enum GstVideoMultiviewFlags is implementation defined and may not have the same size as guint. https://bugzilla.gnome.org/show_bug.cgi?id=774293 --- gst/matroska/matroska-mux.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c index 731612ee8c..cf96386f5b 100644 --- a/gst/matroska/matroska-mux.c +++ b/gst/matroska/matroska-mux.c @@ -943,6 +943,7 @@ gst_matroska_mux_video_pad_setcaps (GstPad * pad, GstCaps * caps) GstBuffer *codec_buf = NULL; gint width, height, pixel_width, pixel_height; gint fps_d, fps_n; + guint multiview_flags; mux = GST_MATROSKA_MUX (GST_PAD_PARENT (pad)); @@ -1008,8 +1009,9 @@ gst_matroska_mux_video_pad_setcaps (GstPad * pad, GstCaps * caps) if ((s = gst_structure_get_string (structure, "multiview-mode"))) videocontext->multiview_mode = gst_video_multiview_mode_from_caps_string (s); - gst_structure_get_flagset (structure, "multiview-flags", - &videocontext->multiview_flags, NULL); + gst_structure_get_flagset (structure, "multiview-flags", &multiview_flags, + NULL); + videocontext->multiview_flags = multiview_flags; skip_details: