Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Mar 30, 2024
1 parent 24aca34 commit 88203f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/drm/drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,13 @@ int us_drm_open(us_drm_s *drm, const us_capture_s *cap) {

assert(run->fd < 0);

_LOG_INFO("Using passthrough: %s[%s]", drm->path, drm->port);

switch (_drm_check_status(drm)) {
case 0: break;
case US_ERROR_NO_DEVICE: goto unplugged;
default: goto error;
}

_LOG_INFO("Using passthrough: %s[%s]", drm->path, drm->port);
_LOG_INFO("Configuring DRM device for %s ...", (cap == NULL ? "STUB" : "DMA"));

if ((run->fd = open(drm->path, O_RDWR | O_CLOEXEC | O_NONBLOCK)) < 0) {
Expand Down

0 comments on commit 88203f9

Please sign in to comment.