Skip to content

Commit

Permalink
v4p: ignore ENOENT (unplugged) on restoring saved_crtc
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Feb 27, 2024
1 parent 50ee2ba commit b202438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v4p/drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b202438

Please sign in to comment.