Ticket #12023: IsBusyRecording.patch

File IsBusyRecording.patch, 1.0 KB (added by lomion@…, 6 years ago)
  • mythtv/programs/mythbackend/scheduler.cpp

    diff --git a/mythtv/programs/mythbackend/scheduler.cpp b/mythtv/programs/mythbackend/scheduler.cpp
    index a372834..126eb74 100644
    a b bool Scheduler::IsBusyRecording(const RecordingInfo *rcinfo) 
    17381738    // now check other cards in the same input group as the recording.
    17391739    TunedInputInfo busy_input;
    17401740    uint inputid = rcinfo->GetInputID();
     1741    uint mplex = rcinfo->QueryMplexID();
    17411742    vector<uint> cardids = CardUtil::GetConflictingCards(
    17421743        inputid, rcinfo->GetCardID());
    17431744    for (uint i = 0; i < cardids.size(); i++)
    bool Scheduler::IsBusyRecording(const RecordingInfo *rcinfo) 
    17541755
    17551756        rctv = (*m_tvList)[cardids[i]];
    17561757        if (rctv->IsBusy(&busy_input, -1) &&
    1757             igrp.GetSharedInputGroup(busy_input.inputid, inputid))
     1758            igrp.GetSharedInputGroup(busy_input.inputid, inputid) &&
     1759            rctv->GetRecording()->QueryMplexID() != mplex)
    17581760        {
    17591761            return true;
    17601762        }