From aa6c32968b9ae8ba198c27c303b43cb152ac8e66 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 4 Oct 2022 19:51:49 -0500 Subject: [PATCH] Add a special termination message for ML_ERROR_FRAME_CONVERSION --- app/src/main/java/com/limelight/Game.java | 4 ++++ app/src/main/java/com/limelight/nvstream/jni/MoonBridge.java | 1 + app/src/main/res/values/strings.xml | 1 + 3 files changed, 6 insertions(+) diff --git a/app/src/main/java/com/limelight/Game.java b/app/src/main/java/com/limelight/Game.java index eb76db92..7c1301de 100644 --- a/app/src/main/java/com/limelight/Game.java +++ b/app/src/main/java/com/limelight/Game.java @@ -1913,6 +1913,10 @@ public class Game extends Activity implements SurfaceHolder.Callback, message = getResources().getString(R.string.early_termination_error); break; + case MoonBridge.ML_ERROR_FRAME_CONVERSION: + message = getResources().getString(R.string.frame_conversion_error); + break; + default: message = getResources().getString(R.string.conn_terminated_msg); break; diff --git a/app/src/main/java/com/limelight/nvstream/jni/MoonBridge.java b/app/src/main/java/com/limelight/nvstream/jni/MoonBridge.java index d50bc186..e0a65cd8 100644 --- a/app/src/main/java/com/limelight/nvstream/jni/MoonBridge.java +++ b/app/src/main/java/com/limelight/nvstream/jni/MoonBridge.java @@ -45,6 +45,7 @@ public class MoonBridge { public static final int ML_ERROR_NO_VIDEO_FRAME = -101; public static final int ML_ERROR_UNEXPECTED_EARLY_TERMINATION = -102; public static final int ML_ERROR_PROTECTED_CONTENT = -103; + public static final int ML_ERROR_FRAME_CONVERSION = -104; public static final int ML_PORT_INDEX_TCP_47984 = 0; public static final int ML_PORT_INDEX_TCP_47989 = 1; diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 73d664ae..85e01277 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -74,6 +74,7 @@ No video received from host. Your network connection isn\'t performing well. Reduce your video bitrate setting or try a faster connection. Something went wrong on your host PC when starting the stream.\n\nMake sure you don\'t have any DRM-protected content open on your host PC. You can also try restarting your host PC.\n\nIf the issue persists, try reinstalling your GPU drivers and GeForce Experience. + The host PC reported a fatal video encoding error.\n\nTry disabling HDR mode, changing the streaming resolution, or changing your host PC's display resolution. Check your firewall and port forwarding rules for port(s):