Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa19a0a6 authored by Ray Chin's avatar Ray Chin Committed by Automerger Merge Worker
Browse files

Bypass Live if there is no HW FE nor SW FE. am: aeaabf3c am: 4c416418 am: 215e28b7

parents 2f41f894 215e28b7
Loading
Loading
Loading
Loading
+14 −3
Original line number Diff line number Diff line
@@ -731,10 +731,21 @@ 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");
    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;
}