(
low_latency: bool,
requested: Option<StreamQualityProfileArg>,
)
| 1094 | const DEFAULT_LOCAL_STREAM_QUALITY_PROFILE: &str = "full"; |
| 1095 | |
| 1096 | fn local_stream_quality_profile( |
| 1097 | low_latency: bool, |
| 1098 | requested: Option<StreamQualityProfileArg>, |
| 1099 | ) -> Option<String> { |
| 1100 | requested |
| 1101 | .map(|profile| profile.as_profile_id().to_owned()) |
| 1102 | .or_else(|| (!low_latency).then_some(DEFAULT_LOCAL_STREAM_QUALITY_PROFILE.to_owned())) |
| 1103 | } |
| 1104 | |
| 1105 | fn stream_quality_env_for_profile(profile: &str) -> anyhow::Result<StreamQualityEnvironment> { |
| 1106 | match profile { |
no test coverage detected