mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
v4l2object: Also add videometa if there is padding to the right and bottom
https://bugzilla.gnome.org/show_bug.cgi?id=780478
This commit is contained in:
parent
501bf0e8d1
commit
79d9cd44b6
1 changed files with 3 additions and 2 deletions
|
@ -3070,9 +3070,10 @@ store_info:
|
||||||
GST_DEBUG_OBJECT (v4l2object->element, "Got sizeimage %" G_GSIZE_FORMAT,
|
GST_DEBUG_OBJECT (v4l2object->element, "Got sizeimage %" G_GSIZE_FORMAT,
|
||||||
info->size);
|
info->size);
|
||||||
|
|
||||||
/* to avoid copies we need video meta if top or left padding */
|
/* to avoid copies we need video meta if there is padding */
|
||||||
v4l2object->need_video_meta =
|
v4l2object->need_video_meta =
|
||||||
((align->padding_top + align->padding_left) != 0);
|
((align->padding_top + align->padding_left + align->padding_right +
|
||||||
|
align->padding_bottom) != 0);
|
||||||
|
|
||||||
/* ... or if stride is non "standard" */
|
/* ... or if stride is non "standard" */
|
||||||
if (!standard_stride)
|
if (!standard_stride)
|
||||||
|
|
Loading…
Reference in a new issue