From 021c4ed7929b6acb61ea31ccdd147a2062c55c16 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Sun, 8 Dec 2024 13:08:43 +0400 Subject: [PATCH] fix: Don't force for old devices if user imports settings where force is enabled --- .../revanced/extension/youtube/patches/spoof/ClientType.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/spoof/ClientType.java b/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/spoof/ClientType.java index 73196edafe..a4a7cce466 100644 --- a/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/spoof/ClientType.java +++ b/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/spoof/ClientType.java @@ -41,7 +41,8 @@ public enum ClientType { ); private static boolean forceAVC() { - return Settings.SPOOF_VIDEO_STREAMS_IOS_FORCE_AVC.get(); + return Settings.SPOOF_VIDEO_STREAMS_IOS_FORCE_AVC.get() + && DeviceHardwareSupport.DEVICE_HAS_HARDWARE_DECODING_VP9; } /**