mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 23:05:49 +00:00
Merge pull request #82 from VoidGravity/fix/windows10-wgc-border-crash
Fix/windows10 wgc border crash
This commit is contained in:
@@ -124,7 +124,12 @@ bool WgcSession::initializeWithItem(int fps) {
|
||||
session_ = framePool_.CreateCaptureSession(captureItem_);
|
||||
|
||||
session_.IsCursorCaptureEnabled(false);
|
||||
session_.IsBorderRequired(false);
|
||||
|
||||
// IsBorderRequired is only available on Windows 11+ (build 22000). propagating an hresult_error results in Native Windows capture failure
|
||||
try {
|
||||
session_.IsBorderRequired(false);
|
||||
} catch (winrt::hresult_error const& e) {
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user