mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-03 06:26:16 +00:00
Fix end of stream toast for AV1
This commit is contained in:
@@ -1145,15 +1145,26 @@ public class Game extends Activity implements SurfaceHolder.Callback,
|
|||||||
|
|
||||||
// Add the video codec to the post-stream toast
|
// Add the video codec to the post-stream toast
|
||||||
if (message != null) {
|
if (message != null) {
|
||||||
if (videoFormat == MoonBridge.VIDEO_FORMAT_H265_MAIN10) {
|
message += " [";
|
||||||
message += " [HEVC HDR]";
|
|
||||||
|
if ((videoFormat & MoonBridge.VIDEO_FORMAT_MASK_H264) != 0) {
|
||||||
|
message += "H.264";
|
||||||
}
|
}
|
||||||
else if (videoFormat == MoonBridge.VIDEO_FORMAT_H265) {
|
else if ((videoFormat & MoonBridge.VIDEO_FORMAT_MASK_H265) != 0) {
|
||||||
message += " [HEVC]";
|
message += "HEVC";
|
||||||
}
|
}
|
||||||
else if (videoFormat == MoonBridge.VIDEO_FORMAT_H264) {
|
else if ((videoFormat & MoonBridge.VIDEO_FORMAT_MASK_AV1) != 0) {
|
||||||
message += " [H.264]";
|
message += "AV1";
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
message += "UNKNOWN";
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((videoFormat & MoonBridge.VIDEO_FORMAT_MASK_10BIT) != 0) {
|
||||||
|
message += " HDR";
|
||||||
|
}
|
||||||
|
|
||||||
|
message += "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (message != null) {
|
if (message != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user