Fix stream disconnecting when reconfiguring display in X11
This commit is contained in:
@@ -1036,8 +1036,9 @@ namespace platf {
|
|||||||
|
|
||||||
auto fb = card.fb(plane.get());
|
auto fb = card.fb(plane.get());
|
||||||
if (!fb) {
|
if (!fb) {
|
||||||
BOOST_LOG(error) << "Couldn't get drm fb for plane ["sv << plane->fb_id << "]: "sv << strerror(errno);
|
// This can happen if the display is being reconfigured while streaming
|
||||||
return capture_e::error;
|
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]) {
|
if (!fb->handles[0]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user