Ticket #6285: livetv_keyframedist2.diff

File livetv_keyframedist2.diff, 1.5 KB (added by Shane Shrybman, 17 years ago)
  • libs/libmythtv/avformatdecoder.cpp

     
    993993    }
    994994
    995995    // If we don't have a position map, set up ffmpeg for seeking
    996     if (!recordingHasPositionMap)
     996    if (!recordingHasPositionMap && !livetv)
    997997    {
    998998        VERBOSE(VB_PLAYBACK, LOC +
    999999                "Recording has no position -- using libavformat seeking.");
     
    23642364        int tempKeyFrameDist = framesRead - 1 - prevgoppos;
    23652365        bool reset_kfd = false;
    23662366
    2367         if (!gopset) // gopset: we've seen 2 keyframes
     2367        if (!gopset || livetv) // gopset: we've seen 2 keyframes
    23682368        {
    23692369            VERBOSE(VB_PLAYBACK, LOC + "HandleGopStart: "
    23702370                    "gopset not set, syncing positionMap");
    23712371            SyncPositionMap();
    2372             if (tempKeyFrameDist > 0)
     2372            if (tempKeyFrameDist > 0 && !livetv)
    23732373            {
    23742374                VERBOSE(VB_PLAYBACK, LOC + "HandleGopStart: " +
    23752375                        QString("Initial key frame distance: %1.")
  • libs/libmythtv/decoderbase.cpp

     
    180180
    181181bool DecoderBase::PosMapFromEnc(void)
    182182{
    183     if (!m_parent)
     183    if (!m_parent || keyframedist < 1)
    184184        return false;
    185185
    186186    unsigned long long start = 0;