Trim comments and hoist settings read in stream filtering

Drop comments restating what the code shows; hoist allowSoftwareDecodedFormats
out of the recommendedVideoStreams filter closure so the bridge property is
read once per render instead of once per stream.
This commit is contained in:
Arkadiusz Fal
2026-05-07 18:03:34 +02:00
parent 16477641ab
commit 158d518e3a
4 changed files with 5 additions and 15 deletions

View File

@@ -71,8 +71,6 @@ struct QualitySelectorView: View {
appEnvironment?.settingsManager.showAdvancedStreamDetails ?? false
}
/// Whether the user has opted in to software-decoded formats during auto-selection.
/// When enabled, software-decoded streams are treated as recommended (no split).
var allowSoftwareDecodedFormats: Bool {
appEnvironment?.settingsManager.allowSoftwareDecodedFormats ?? false
}