Bypass Live if there is no HW FE nor SW FE. am: aeaabf3c1f
am: 711633aa81
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2926211 Change-Id: Idd7d51965d8041462cf5f2b311ad3b396afb0052 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
97bf5b3c8f
1 changed files with 14 additions and 3 deletions
|
@ -731,9 +731,20 @@ inline void determineLive() {
|
|||
if (videoFilterIds.empty() || audioFilterIds.empty() || frontendMap.empty()) {
|
||||
return;
|
||||
}
|
||||
if (hasSwFe && !hasHwFe && dvrMap.empty()) {
|
||||
ALOGD("Cannot configure Live. Only software frontends and no dvr connections");
|
||||
return;
|
||||
if (!hasHwFe) {
|
||||
if (hasSwFe) {
|
||||
if (dvrMap.empty()) {
|
||||
ALOGD("Cannot configure Live. Only software frontends and no dvr connections.");
|
||||
return;
|
||||
}
|
||||
// Live is available if there is SW FE and some DVR is attached.
|
||||
} else {
|
||||
// We will arrive here because frontendMap won't be empty since
|
||||
// there will be at least a default frontend declared. But the
|
||||
// default frontend doesn't count as "hasSwFe".
|
||||
ALOGD("Cannot configure Live. No frontend declared at all.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
ALOGD("Can support live");
|
||||
live.hasFrontendConnection = true;
|
||||
|
|
Loading…
Reference in a new issue