mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
v4l2bufferpool: On warn on size change if n_planes > 1
https://bugzilla.gnome.org/show_bug.cgi?id=720568
This commit is contained in:
parent
79f2c06883
commit
86646ce03b
1 changed files with 2 additions and 1 deletions
|
@ -1163,7 +1163,8 @@ gst_v4l2_buffer_pool_release_buffer (GstBufferPool * bpool, GstBuffer * buffer)
|
|||
for (i = 0; i < meta->n_planes; i++)
|
||||
total_length += meta->vplanes[i].length;
|
||||
|
||||
if (total_length != gst_buffer_get_size (buffer)) {
|
||||
if (total_length != gst_buffer_get_size (buffer) &&
|
||||
obj->info.finfo->n_planes > 1) {
|
||||
/* FIXME if the lengths has actually changed it may require
|
||||
* to restore the sizes of the individual memories and
|
||||
* re-add them */
|
||||
|
|
Loading…
Reference in a new issue