videocrop: Use G_VALUE_INIT to initialize GValues

This commit is contained in:
Markus Ebner 2020-03-09 23:23:50 +01:00 committed by Sebastian Dröge
parent fc3bb4c549
commit 4a9e5bbf8b

View file

@ -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);