eglimage: Fix wrong stride when importing DMABuf
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 10 Jun 2021 16:39:34 +0000 (12:39 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 10 Jun 2021 16:39:34 +0000 (12:39 -0400)
commit0661b15957ba15126c47c7caf843eefe15bc43c5
tree5bb5eae96370d993ce3e7cf44487a4dfb56d99ee
parent1565b9635b830c33591c664dc0baad78d3a7ce9c
eglimage: Fix wrong stride when importing DMABuf

When the code was ported to use component index instead of plane
index, the call to GST_VIDEO_INFO_PLANE_STRIDE() was accidently ported
to use component index, but this macro takes a plane index.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1199>
gst-libs/gst/gl/egl/gsteglimage.c