From a9c2a8e162ff45f618e7f6fd2c57831b15b9c906 Mon Sep 17 00:00:00 2001 From: Anton Kindestam Date: Sat, 21 Apr 2018 15:16:54 +0200 Subject: [PATCH] drm_atomic: Disallow selecting cursor planes using the options --- video/out/drm_atomic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/video/out/drm_atomic.c b/video/out/drm_atomic.c index 84c46beb82..e6f7cdbd7e 100644 --- a/video/out/drm_atomic.c +++ b/video/out/drm_atomic.c @@ -209,6 +209,9 @@ struct drm_atomic_context *drm_atomic_create_context(struct mp_log *log, int fd, mp_err(log, "Unable to retrieve type property from plane %d\n", j); goto fail; } else { + if (value == DRM_PLANE_TYPE_CURSOR) // Skip cursor planes + continue; + layercount++; if ((!primary_id) && (value == DRM_PLANE_TYPE_PRIMARY))