mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
backend/drm: avoid error message when EDID is missing
We'd attempt to parse an EDID even when the connector has no EDID, printing "Failed to parse EDID" in logs. Instead, don't attempt to parse the EDID and print a more appropriate log message.
This commit is contained in:
parent
d039ad8da3
commit
2ec4012559
1 changed files with 5 additions and 1 deletions
|
|
@ -1717,7 +1717,11 @@ static bool connect_drm_connector(struct wlr_drm_connector *wlr_conn,
|
|||
size_t edid_len = 0;
|
||||
uint8_t *edid = get_drm_prop_blob(drm->fd,
|
||||
wlr_conn->id, wlr_conn->props.edid, &edid_len);
|
||||
parse_edid(wlr_conn, edid_len, edid);
|
||||
if (edid_len > 0) {
|
||||
parse_edid(wlr_conn, edid_len, edid);
|
||||
} else {
|
||||
wlr_log(WLR_DEBUG, "Connector has no EDID");
|
||||
}
|
||||
free(edid);
|
||||
|
||||
char *subconnector = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue