From 23a3369d167bbe81a6c919fb12c3f93143495daa Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 19 Aug 2024 19:47:51 +0900 Subject: [PATCH] Fix android specific issue --- osu.Framework.Android/Graphics/Video/AndroidVideoDecoder.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osu.Framework.Android/Graphics/Video/AndroidVideoDecoder.cs b/osu.Framework.Android/Graphics/Video/AndroidVideoDecoder.cs index 35cb60193..1c26d7cc8 100644 --- a/osu.Framework.Android/Graphics/Video/AndroidVideoDecoder.cs +++ b/osu.Framework.Android/Graphics/Video/AndroidVideoDecoder.cs @@ -7,6 +7,7 @@ using System.IO; using System.Runtime.InteropServices; using FFmpeg.AutoGen; using Java.Interop; +using osu.Framework.Extensions.EnumExtensions; using osu.Framework.Graphics.Rendering; using osu.Framework.Graphics.Video; using osu.Framework.Logging; @@ -154,7 +155,7 @@ namespace osu.Framework.Android.Graphics.Video HardwareVideoDecoder targetHwDecoders ) { - if (targetHwDecoders.HasFlag(HardwareVideoDecoder.MediaCodec)) + if (targetHwDecoders.HasFlagFast(HardwareVideoDecoder.MediaCodec)) { string? formatName = Marshal.PtrToStringAnsi((IntPtr)inputFormat->name);