Ticket #12290: 12290.patch

File 12290.patch, 1.2 KB (added by Bill Meek, 4 years ago)
  • mythtv/libs/libmythtv/tv_rec.cpp

    diff --git a/mythtv/libs/libmythtv/tv_rec.cpp b/mythtv/libs/libmythtv/tv_rec.cpp
    index 7440f03..07f83a9 100644
    a b void TVRec::FinishedRecording(RecordingInfo *curRec, RecordingQuality *recq) 
    931931            curRec->GetRecordingStartTime().addSecs(60));
    932932    }
    933933
    934     // HACK Temporary hack, ensure we've loaded the recording file info, do it now
    935     //      so that it contains the final filesize information
    936     if (!curRec->GetRecordingFile())
    937         curRec->LoadRecordingFile();
    938 
    939934    // Generate a preview
    940935    uint64_t fsize = curRec->GetFilesize();
     936    LOG(VB_GENERAL, LOG_INFO, QString("#12290 test. fsize=%1.").arg(fsize));
    941937    if (curRec->IsLocal() && (fsize >= 1000) &&
    942938        (curRec->GetRecordingStatus() == RecStatus::Recorded))
    943939    {
    void TVRec::TeardownRecorder(uint request_flags) 
    11561152        if (!!(request_flags & kFlagKillRec))
    11571153            curRecording->SetRecordingStatus(RecStatus::Failed);
    11581154
     1155        curRecording->SaveFilesize(ringBuffer->GetRealFileSize());
    11591156        FinishedRecording(curRecording, recq);
    11601157
    11611158        curRecording->MarkAsInUse(false, kRecorderInUseID);