Skip to content

Commit

Permalink
Fix stream disconnecting when reconfiguring display in X11
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Jan 19, 2024
1 parent 404b434 commit 21e4450
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/platform/linux/kmsgrab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1036,8 +1036,9 @@ namespace platf {

auto fb = card.fb(plane.get());
if (!fb) {
BOOST_LOG(error) << "Couldn't get drm fb for plane ["sv << plane->fb_id << "]: "sv << strerror(errno);
return capture_e::error;
// This can happen if the display is being reconfigured while streaming
BOOST_LOG(warning) << "Couldn't get drm fb for plane ["sv << plane->fb_id << "]: "sv << strerror(errno);
return capture_e::timeout;
}

if (!fb->handles[0]) {
Expand Down

0 comments on commit 21e4450

Please sign in to comment.