fix: capture dimensions must be > 0

This commit is contained in:
Ashley Wulber 2024-04-23 17:45:23 -04:00 committed by Ashley Wulber
parent 7b411c3510
commit 1760354654
2 changed files with 8 additions and 0 deletions

View file

@ -401,6 +401,10 @@ impl CaptureData {
.unwrap();
let (width, height) = formats.buffer_size;
if width == 0 || height == 0 {
return None;
}
// XXX
if !formats
.shm_formats

View file

@ -167,6 +167,10 @@ impl CaptureData {
.unwrap();
let (width, height) = formats.buffer_size;
if width == 0 || height == 0 {
return None;
}
// XXX
if !formats
.shm_formats