Skip to content

Commit ff58919

Browse files
Anton KindestamLongChair
authored andcommitted
drm_atomic: Disallow selecting cursor planes using the options
1 parent 8ce7f67 commit ff58919

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

video/out/drm_atomic.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ struct drm_atomic_context *drm_atomic_create_context(struct mp_log *log, int fd,
209209
mp_err(log, "Unable to retrieve type property from plane %d\n", j);
210210
goto fail;
211211
} else {
212+
if (value == DRM_PLANE_TYPE_CURSOR) // Skip cursor planes
213+
continue;
214+
212215
layercount++;
213216

214217
if ((!primary_id) && (value == DRM_PLANE_TYPE_PRIMARY))

0 commit comments

Comments
 (0)