Skip to content

Commit

Permalink
v4p: better messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Feb 27, 2024
1 parent b202438 commit 1c862b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/v4p/drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ static void _drm_cleanup(us_drm_s *drm) {
run->crtc_id = 0;
run->next_n_buf = 0;
run->has_vsync = false;
if (run->state == US_DRM_STATE_OK) {
_D_LOG_INFO("Stopped");
}
run->state = US_DRM_STATE_CLOSED;
}

Expand Down Expand Up @@ -351,7 +354,7 @@ static int _drm_ensure(us_drm_s *drm, const us_frame_s *frame, float hz) {

unplugged:
if (run->state != US_DRM_STATE_NO_DISPLAY) {
_D_LOG_INFO("Display %s unplugged", drm->port);
_D_LOG_INFO("Display %s is not plugged", drm->port);
}
_drm_cleanup(drm);
run->state = US_DRM_STATE_NO_DISPLAY;
Expand Down

0 comments on commit 1c862b2

Please sign in to comment.