mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-16 06:10:13 +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 hwdec;
|
||||||
final String desc;
|
final String desc;
|
||||||
const HwDecType(this.hwdec, this.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(
|
static String get hardwareDecoding => _setting.get(
|
||||||
SettingBoxKey.hardwareDecoding,
|
SettingBoxKey.hardwareDecoding,
|
||||||
defaultValue: Platform.isAndroid
|
defaultValue: Platform.isAndroid
|
||||||
? HwDecType.autoSafe.hwdec
|
? HwDecType.androidDefault
|
||||||
: HwDecType.auto.hwdec,
|
: HwDecType.auto.hwdec,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user