Add special termination error code for protected content

This commit is contained in:
Cameron Gutman
2021-04-09 11:53:03 -05:00
parent 9841a6e34d
commit 6dca9c6754
2 changed files with 11 additions and 3 deletions

View File

@@ -377,10 +377,14 @@ typedef void(*ConnListenerConnectionTerminated)(int errorCode);
// This error is passed to ConnListenerConnectionTerminated() if the stream ends
// very soon after starting due to a graceful termination from the host. Usually
// this seems to happen if DRM protected content is on-screen, or another issue
// that prevents the encoder from being able to capture video successfully.
// this seems to happen if DRM protected content is on-screen (pre-GFE 3.22), or
// another issue that prevents the encoder from being able to capture video successfully.
#define ML_ERROR_UNEXPECTED_EARLY_TERMINATION -102
// This error is passed to ConnListenerConnectionTerminated() if the stream ends
// due to a protected content error from the host. This value is supported on GFE 3.22+.
#define ML_ERROR_PROTECTED_CONTENT -103
// This callback is invoked to log debug message
typedef void(*ConnListenerLogMessage)(const char* format, ...);