From 9df9132be9da28f3e440ee4021ce21d885d1b752 Mon Sep 17 00:00:00 2001 From: dom Date: Sat, 20 Jun 2026 17:59:35 +0800 Subject: [PATCH] update android default hwdec Signed-off-by: dom --- lib/plugin/pl_player/models/hwdec_type.dart | 5 +++++ lib/utils/storage_pref.dart | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/plugin/pl_player/models/hwdec_type.dart b/lib/plugin/pl_player/models/hwdec_type.dart index ae1b4671d..2fecfdd53 100644 --- a/lib/plugin/pl_player/models/hwdec_type.dart +++ b/lib/plugin/pl_player/models/hwdec_type.dart @@ -37,4 +37,9 @@ enum HwDecType { final String hwdec; final String desc; const HwDecType(this.hwdec, this.desc); + + static final String androidDefault = [ + HwDecType.mediacodec.hwdec, + HwDecType.autoSafe.hwdec, + ].join(','); } diff --git a/lib/utils/storage_pref.dart b/lib/utils/storage_pref.dart index e45175414..76ec1cd1d 100644 --- a/lib/utils/storage_pref.dart +++ b/lib/utils/storage_pref.dart @@ -200,7 +200,7 @@ abstract final class Pref { static String get hardwareDecoding => _setting.get( SettingBoxKey.hardwareDecoding, defaultValue: Platform.isAndroid - ? HwDecType.autoSafe.hwdec + ? HwDecType.androidDefault : HwDecType.auto.hwdec, );