kmssink: configure mode setting from video info
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 17 Aug 2018 09:12:26 +0000 (11:12 +0200)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 21 Aug 2018 15:49:55 +0000 (11:49 -0400)
commit62a194c78189be629b868944006ba14f017f46f5
tree69dc930acca9f0ce57113c11a304d1a1e9bd01c7
parent203d1825c51481b6efe7ae2b275742cd789452c4
kmssink: configure mode setting from video info

drmModeGetFB returns -EINVAL for multi-planar framebuffers. Instead of
depending on the framebuffer dimensions to select the mode, use width
and height from GstVideoInfo, which was used to create the framebuffer
in the first place.  This enables kmssink to display multi-planar
formats such as I420 or NV12 with modesetting enabled.

https://bugzilla.gnome.org/show_bug.cgi?id=796985
sys/kms/gstkmssink.c