mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[host] nvfbc: do not crash when protected content is playing
We return a timeout, so that when protected content finishes playing, we can immediately resume capture.
This commit is contained in:
parent
8db4b65dee
commit
eb01efe0cb
@ -253,6 +253,11 @@ CaptureResult NvFBCToSysCapture(
|
||||
handle->retry = 0;
|
||||
break;
|
||||
|
||||
case NVFBC_ERROR_PROTECTED_CONTENT:
|
||||
DEBUG_WARN("Protected content is playing, can't capture");
|
||||
Sleep(100);
|
||||
return CAPTURE_RESULT_TIMEOUT;
|
||||
|
||||
case NVFBC_ERROR_INVALID_PARAM:
|
||||
if (handle->retry < 2)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user