fix(tv): 默认关闭预先加载画质增强着色器 #3630
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 85 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.266
Real PR Conversation Timeline
1 comments
"Review active on #3630"
general
weight: 0.35
Him188
背景
「预先加载画质增强着色器」在 Android TV 上默认开启。开启后,即使画质增强处于关闭状态,Media3 也会在首次 prepare 前建立空的 effect graph,视频改走 GPU 合成链路。这会让电视厂商的画质处理(例如运动补偿)可能失效甚至黑屏——选项描述里已有此提示,且电视 SoC 通常也难以实时运行画质增强着色器。
改动
PlayerKernelConfig.exoPlayerInitEffectGraphInAdvance的默认值改为!currentPlatform().isAndroidTv(),TV 上默认关闭,其他平台默认开启(与UpdateSettings.inAppDownload的写法一致);默认值只在没有已存储值时生效,已经手动设置过的用户不受影响。
验证
PlayerKernelConfigTest(断言默认值跟随!currentPlatform().isAndroidTv());./gradlew :app:shared:app-data:testAndroidHostTest :app:shared:ui-settings:testAndroidHostTest通过;