Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dhruvDev23
Copy link
Contributor

Fix potential panic in GBM device initialization

This PR prevents a potential panic in libwayshot when GBM device initialization fails.
The code previously used unwrap(), which would crash the program on error.

  • Replaced GBMDevice::new(gpu).unwrap() with GBMDevice::new(gpu)?
  • Allows the error to be returned to the caller instead of panicking.

@Decodetalkers Decodetalkers merged commit 7fe5497 into waycrate:main Dec 18, 2025
5 checks passed
@dhruvDev23 dhruvDev23 deleted the fix-gbm-panic branch December 18, 2025 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants