[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 authored and Geoffrey McRae committed 2021-07-11 17:54:23 +10:00
1 parent 8db4b65dee
commit eb01efe0cb
1 file changed
+5
@@ -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)
{