Screencasting with xdg-desktop-portal not working for 4K #358
Replies: 2 comments
-
And this hack makes it work: diff --git a/src/portal/ptl_screencast.rs b/src/portal/ptl_screencast.rs
index d27be66d..630b4a76 100644
--- a/src/portal/ptl_screencast.rs
+++ b/src/portal/ptl_screencast.rs
@@ -264,7 +264,7 @@ impl PwClientNodeOwner for StartedScreencast {
};
let modifier;
let planes;
- match self.allocate_buffer(fmt, modifiers, 1, 1) {
+ match self.allocate_buffer(fmt, modifiers, 3840, 2160) {
Ok(bo) => {
let dmabuf = bo.dmabuf();
modifier = dmabuf.modifier; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I try to use OBS to capture my screen, it only works if the buffer size is below a certain size.
I've narrowed down the reason for the failure to GBM failing to create buffers past a certain size due to this code:
This code seems to make the allowed modifiers (?) different for buffers of different sizes. I think jay is trying to infer modifiers from a buffer of size (1, 1) and then trying to use them for the full size, which fails because of this.
Beta Was this translation helpful? Give feedback.
All reactions