This commit is contained in:
Maxim Devaev
2024-08-16 07:04:21 +03:00
parent f2779f7b44
commit 000be92a0b
7 changed files with 20 additions and 19 deletions

View File

@@ -614,7 +614,7 @@ static int _drm_find_sink(us_drm_s *drm, uint width, uint height, float hz) {
goto done;
}
drmModeModeInfo *best;
const drmModeModeInfo *best;
if ((best = _find_best_mode(conn, width, height, hz)) == NULL) {
_LOG_ERROR("Can't find any appropriate display modes");
drmModeFreeConnector(conn);