aboutsummaryrefslogtreecommitdiffhomepage
path: root/video
diff options
context:
space:
mode:
authorGravatar Anton Kindestam <antonki@kth.se>2018-04-21 15:16:54 +0200
committerGravatar Jan Ekström <jeebjp@gmail.com>2018-05-01 20:48:02 +0300
commita9c2a8e162ff45f618e7f6fd2c57831b15b9c906 (patch)
treeef33356ed076446008795ef72ba37d07a6795e67 /video
parent02d40eee1bf931b976dffa2416a34752248f5b99 (diff)
drm_atomic: Disallow selecting cursor planes using the options
Diffstat (limited to 'video')
-rw-r--r--video/out/drm_atomic.c3
1 files changed, 3 insertions, 0 deletions
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))