mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-17 13:49:59 +00:00
Add special termination error code for protected content
This commit is contained in:
@@ -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, ...);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user