mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
videocrop: Use G_VALUE_INIT to initialize GValues
This commit is contained in:
parent
fc3bb4c549
commit
4a9e5bbf8b
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue