glupload: Fix DirectVIV uploader for formats with a single plane
authorSebastian Dröge <sebastian@centricular.com>
Mon, 12 Jun 2017 19:29:01 +0000 (22:29 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 12 Jun 2017 19:30:21 +0000 (22:30 +0300)
commit428f2fad4b18ee7f09d8f4c57a7309b4e3b11bc8
tree9decf82ad80a31bbfdcc0e9b9bf5f3089bf3a2ae
parent14f8808bf2d8b8e7fd2988a9622a6ce059a89b1c
glupload: Fix DirectVIV uploader for formats with a single plane

We have to pass the "height" as height = vmeta->offset[1] / width to the
API, which of course does not work well for formats with only a single
plane. Use the whole memory size instead of the offset in that case.
gst-libs/gst/gl/gstglupload.c