mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
v4l2object: Fix size of plane_size array calculation
Due to missing parenthesys, only the first element of the array was being cleared. As it is a staticly sized array in the object, this code could also be simplified. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3952>
This commit is contained in:
parent
152df21644
commit
20eb14b85b
1 changed files with 1 additions and 2 deletions
|
@ -3600,8 +3600,7 @@ gst_v4l2_object_save_format (GstV4l2Object * v4l2object,
|
||||||
if ((align->padding_left + align->padding_top) > 0)
|
if ((align->padding_left + align->padding_top) > 0)
|
||||||
GST_WARNING_OBJECT (v4l2object->dbg_obj,
|
GST_WARNING_OBJECT (v4l2object->dbg_obj,
|
||||||
"Left and top padding is not permitted for tiled formats");
|
"Left and top padding is not permitted for tiled formats");
|
||||||
memset (v4l2object->plane_size, 0,
|
memset (v4l2object->plane_size, 0, sizeof (v4l2object->plane_size));
|
||||||
sizeof (v4l2object->plane_size[0] * GST_VIDEO_MAX_PLANES));
|
|
||||||
} else {
|
} else {
|
||||||
if (!gst_video_info_align_full (info, align, v4l2object->plane_size)) {
|
if (!gst_video_info_align_full (info, align, v4l2object->plane_size)) {
|
||||||
GST_WARNING_OBJECT (v4l2object->dbg_obj, "Failed to align video info");
|
GST_WARNING_OBJECT (v4l2object->dbg_obj, "Failed to align video info");
|
||||||
|
|
Loading…
Reference in a new issue