mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-25 11:50:16 +08:00
update android default hwdec
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -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(',');
|
||||
}
|
||||
|
||||
@@ -257,7 +257,7 @@ abstract final class Pref {
|
||||
static String get hardwareDecoding => _setting.get(
|
||||
SettingBoxKey.hardwareDecoding,
|
||||
defaultValue: Platform.isAndroid
|
||||
? HwDecType.autoSafe.hwdec
|
||||
? HwDecType.androidDefault
|
||||
: HwDecType.auto.hwdec,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user