Skip to content

Commit

Permalink
drm_atomic: Disallow selecting cursor planes using the options
Browse files Browse the repository at this point in the history
  • Loading branch information
xantoz authored and LongChair committed Apr 29, 2018
1 parent 8ce7f67 commit ff58919
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions video/out/drm_atomic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ff58919

Please sign in to comment.