mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-19 06:39:53 +00:00
Add a special error code for early termination
This commit is contained in:
@@ -369,6 +369,12 @@ typedef void(*ConnListenerConnectionTerminated)(int errorCode);
|
||||
// an extremely unstable connection or a bitrate that is far too high.
|
||||
#define ML_ERROR_NO_VIDEO_FRAME -101
|
||||
|
||||
// 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.
|
||||
#define ML_ERROR_UNEXPECTED_EARLY_TERMINATION -102
|
||||
|
||||
// This callback is invoked to log debug message
|
||||
typedef void(*ConnListenerLogMessage)(const char* format, ...);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user