Fix build with old libdrm headers
This commit is contained in:
parent
443720c3de
commit
e0fd84d6f5
2 changed files with 38 additions and 1 deletions
|
|
@ -370,7 +370,8 @@ bool DrmRenderer::initialize(PDECODER_PARAMETERS params)
|
|||
// If we have an HDR output metadata property, construct the metadata blob
|
||||
// to apply when we are called to enter HDR mode.
|
||||
if (m_HdrOutputMetadataProp != nullptr) {
|
||||
struct hdr_output_metadata outputMetadata;
|
||||
DrmDefs::hdr_output_metadata outputMetadata;
|
||||
|
||||
outputMetadata.metadata_type = 0; // HDMI_STATIC_METADATA_TYPE1
|
||||
outputMetadata.hdmi_metadata_type1.eotf = params->hdrMetadata.eotf;
|
||||
outputMetadata.hdmi_metadata_type1.metadata_type = params->hdrMetadata.staticMetadataDescriptorId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue