From b202438a4d2571d2b41370e4373115f694b515c4 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Tue, 27 Feb 2024 23:58:59 +0200 Subject: [PATCH] v4p: ignore ENOENT (unplugged) on restoring saved_crtc --- src/v4p/drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v4p/drm.c b/src/v4p/drm.c index 3ed57a884..348559e44 100644 --- a/src/v4p/drm.c +++ b/src/v4p/drm.c @@ -228,7 +228,7 @@ static void _drm_cleanup(us_drm_s *drm) { run->saved_crtc->crtc_id, run->saved_crtc->buffer_id, run->saved_crtc->x, run->saved_crtc->y, &run->conn_id, 1, &run->saved_crtc->mode - ) < 0) { + ) < 0 && errno != ENOENT) { _D_LOG_PERROR("Can't restore CRTC"); } drmModeFreeCrtc(run->saved_crtc);