kmssink: add a plane-id property
authorJavier Martinez Canillas <javier@osg.samsung.com>
Wed, 29 Jun 2016 00:51:56 +0000 (20:51 -0400)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 30 Jun 2016 09:54:36 +0000 (11:54 +0200)
commitc2cd60db0feaebb827fe8eb3bbfc85040abf49da
tree5e8e5e317d125b0333f49fb8e36659952d5262f2
parente7f8c62d4240a99960b2ed5f480e947caecc2441
kmssink: add a plane-id property

Without setting the DRM_CLIENT_CAP_UNIVERSAL_PLANES capability bit, only
overlay planes are made available for compatibility with legacy clients.

But if a CRTC doesn't have an overlay plane associated, then kmssink is
not able to find a plane for the CRTC and the pipeline will fail, i.e:

ERROR                kmssink gstkmssink.c:482:gst_kms_sink_start:<kmssink0> Could not find a plane for crtc

This patch adds a plane-id property to the kmssink element so a specific
plane can be used in case that a CRTC has only a primary plane associated.

https://bugzilla.gnome.org/show_bug.cgi?id=768183
docs/plugins/gst-plugins-bad-plugins.args
sys/kms/gstkmssink.c