Add warning when Desktop Duplication API masks protected content from capture

This commit is contained in:
Cameron Gutman
2023-05-11 19:55:11 -05:00
parent 17124deb22
commit 33dafbc801
2 changed files with 9 additions and 0 deletions

View File

@@ -109,6 +109,7 @@ namespace platf::dxgi {
dup_t dup;
bool has_frame {};
bool use_dwmflush {};
std::chrono::steady_clock::time_point last_protected_content_warning_time {};
capture_e
next_frame(DXGI_OUTDUPL_FRAME_INFO &frame_info, std::chrono::milliseconds timeout, resource_t::pointer *res_p);