From 4a9e5bbf8b49a49fa3e31966036b2666205939c2 Mon Sep 17 00:00:00 2001 From: Markus Ebner Date: Mon, 9 Mar 2020 23:23:50 +0100 Subject: [PATCH] videocrop: Use G_VALUE_INIT to initialize GValues --- gst/videocrop/gstvideocrop.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gst/videocrop/gstvideocrop.c b/gst/videocrop/gstvideocrop.c index 4722ec7..0507e88 100644 --- a/gst/videocrop/gstvideocrop.c +++ b/gst/videocrop/gstvideocrop.c @@ -634,7 +634,7 @@ gst_video_crop_transform_dimension_value (const GValue * src_val, for (i = 0; i < gst_value_list_get_size (src_val); ++i) { const GValue *list_val; - GValue newval = { 0, }; + GValue newval = G_VALUE_INIT; list_val = gst_value_list_get_value (src_val, i); if (gst_video_crop_transform_dimension_value (list_val, delta, &newval, @@ -695,8 +695,7 @@ gst_video_crop_transform_caps (GstBaseTransform * trans, for (i = 0; i < gst_caps_get_size (caps); ++i) { const GValue *v; GstStructure *structure, *new_structure; - GValue w_val = { 0, }, h_val = { - 0,}; + GValue w_val = G_VALUE_INIT, h_val = G_VALUE_INIT; structure = gst_caps_get_structure (caps, i); -- 2.7.4