Don't set the HDR metadata blob if we don't have one
This commit is contained in:
parent
13dbad6f35
commit
76bd4a1c7b
1 changed files with 1 additions and 1 deletions
|
|
@ -448,7 +448,7 @@ int DrmRenderer::getRendererAttributes()
|
|||
|
||||
void DrmRenderer::setHdrMode(bool enabled)
|
||||
{
|
||||
if (m_HdrOutputMetadataProp != nullptr) {
|
||||
if (m_HdrOutputMetadataProp != nullptr && m_HdrOutputMetadataBlobId != 0) {
|
||||
int err = drmModeObjectSetProperty(m_DrmFd, m_ConnectorId, DRM_MODE_OBJECT_CONNECTOR,
|
||||
m_HdrOutputMetadataProp->prop_id,
|
||||
enabled ? m_HdrOutputMetadataBlobId : 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue