This commit is contained in:
Cameron Gutman
2026-01-06 02:14:45 -06:00
parent 8aec35a650
commit ed98f256e8

View File

@@ -811,7 +811,7 @@ bool DrmRenderer::initialize(PDECODER_PARAMETERS params)
// underlays where the YUV-compatible overlay plane resides
// underneath the primary plane. In this case, we will use
// the primary plane as an overlay plane on top of the video.
if (auto type = props.property("type"))
if (auto type = props.property("type")) {
if (type->initialValue() != DRM_PLANE_TYPE_OVERLAY && type->initialValue() != DRM_PLANE_TYPE_PRIMARY) {
drmModeFreePlane(plane);
continue;