v4p: ignore ENOENT (unplugged) on restoring saved_crtc

This commit is contained in:
Maxim Devaev 2024-02-27 23:58:59 +02:00
parent 50ee2ba964
commit b202438a4d

View File

@ -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);