From 21e4450ee1d7ffd18b0609c796369b7c0ef75811 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 18 Jan 2024 18:54:05 -0600 Subject: [PATCH] Fix stream disconnecting when reconfiguring display in X11 --- src/platform/linux/kmsgrab.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/platform/linux/kmsgrab.cpp b/src/platform/linux/kmsgrab.cpp index be1f7ad9a50..faa6dfb4ed9 100644 --- a/src/platform/linux/kmsgrab.cpp +++ b/src/platform/linux/kmsgrab.cpp @@ -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]) {