Skip to content

Commit

Permalink
[drmkms] Extra check, don't validate output without a valid crtc.
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioginer committed Oct 1, 2023
1 parent c81e2ff commit 99a5fd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_video_drmkms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,10 @@ bool drmkms_timing::init()
}
}
if (!mp_crtc_desktop)
{
m_desktop_output = 0;
log_error("DRM/KMS: <%d> (init) [ERROR] no crtc found\n", m_id);
}
drmModeFreeEncoder(p_encoder);
}
output_position++;
Expand Down

0 comments on commit 99a5fd3

Please sign in to comment.