Ticket #12422: keepPCR.patch

File keepPCR.patch, 766 bytes (added by peper03, 6 years ago)
  • mythtv/libs/libmythtv/recorders/dtvrecorder.cpp

    diff --git a/mythtv/libs/libmythtv/recorders/dtvrecorder.cpp b/mythtv/libs/libmythtv/recorders/dtvrecorder.cpp
    index afaa2e1..3a21681 100644
    a b void DTVRecorder::HandleSingleProgramPMT(ProgramMapTable *pmt, bool insert) 
    14281428        _stream_id[pmt->StreamPID(i)] = pmt->StreamType(i);
    14291429    }
    14301430
     1431    // If the PCRPID is valid and the PCR is not contained
     1432    // in another stream, make sure the PCR stream is not
     1433    // discarded (use PrivSec type as dummy 'valid' value)
     1434    if(pmt->PCRPID() != 0x1fff && pmt->FindPID(pmt->PCRPID()) == -1)
     1435        _stream_id[pmt->PCRPID()] = StreamID::PrivSec;
     1436
    14311437    if (!ringBuffer)
    14321438        return;
    14331439