diff --git a/src/v4p/drm.c b/src/v4p/drm.c index 348559e44..8da8e1c45 100644 --- a/src/v4p/drm.c +++ b/src/v4p/drm.c @@ -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; } @@ -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;