mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-16 12:25:50 +00:00
v4l2allocator: Fix data offset / bytesused size validation
The check was too strict causing spurious warning. Now check for <= so that 0 sized buffer do not cause a warning. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/649>
This commit is contained in:
parent
dbdbcfe7ff
commit
0344c50eaf
1 changed files with 1 additions and 1 deletions
|
@ -1363,7 +1363,7 @@ gst_v4l2_allocator_dqbuf (GstV4l2Allocator * allocator,
|
||||||
|
|
||||||
offset = group->planes[i].data_offset;
|
offset = group->planes[i].data_offset;
|
||||||
|
|
||||||
if (group->planes[i].bytesused > group->planes[i].data_offset) {
|
if (group->planes[i].bytesused >= group->planes[i].data_offset) {
|
||||||
size = group->planes[i].bytesused - group->planes[i].data_offset;
|
size = group->planes[i].bytesused - group->planes[i].data_offset;
|
||||||
} else {
|
} else {
|
||||||
GST_WARNING_OBJECT (allocator, "V4L2 provided buffer has bytesused %"
|
GST_WARNING_OBJECT (allocator, "V4L2 provided buffer has bytesused %"
|
||||||
|
|
Loading…
Reference in a new issue