Ticket #11119: 11119-v2.diff

File 11119-v2.diff, 1.6 KB (added by paulh, 6 years ago)

Patch from Frank Phillips

  • mythtv/libs/libmythtv/tv_rec.cpp

    From e6ca74c1a497bd82ca62aa74738d4543043d8656 Mon Sep 17 00:00:00 2001
    From: Frank Phillips <frankalso@gmail.com>
    Date: Thu, 10 Apr 2014 19:07:14 -0500
    Subject: [PATCH] Keep some recordings from getting a LiveTV recgroup
    
    Following #10943, an ApplyRecordRecGroupChange() was added near the end of GetProgramRingBufferForLiveTV() to update recorded.recgroup before it is queried in StartedRecording().
    
    The problem arises because we don't have the correct recstartts for ApplyRecordRecGroupChange() until later when we successfully insert the program in RecordingInfo::StartedRecording.
    
    Fixes #11119
    ---
     mythtv/libs/libmythtv/tv_rec.cpp | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/mythtv/libs/libmythtv/tv_rec.cpp b/mythtv/libs/libmythtv/tv_rec.cpp
    index 20c5f23..dddffd2 100644
    a b void TVRec::StartedRecording(RecordingInfo *curRec) 
    803803    if (curRec->IsCommercialFree())
    804804        curRec->SaveCommFlagged(COMM_FLAG_COMMFREE);
    805805
    806     AutoRunInitType t = (curRec->QueryRecordingGroup() == "LiveTV") ?
     806    AutoRunInitType t = (curRec->GetRecordingGroup() == "LiveTV") ?
    807807        kAutoRunNone : kAutoRunProfile;
    808808    InitAutoRunJobs(curRec, t, NULL, __LINE__);
    809809
    bool TVRec::GetProgramRingBufferForLiveTV(RecordingInfo **pginfo, 
    45114511    }
    45124512
    45134513    if (!pseudoLiveTVRecording)
    4514         prog->ApplyRecordRecGroupChange(RecordingInfo::kLiveTVRecGroup);
     4514        prog->SetRecordingGroup(RecordingInfo::kLiveTVRecGroup);
    45154515
    45164516    StartedRecording(prog);
    45174517