[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:
Quantum 2021-07-11 03:36:27 -04:00 committed by Geoffrey McRae
parent 8db4b65dee
commit eb01efe0cb

View File

@ -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)
{