Ticket #10833: improve-skip-response-time.patch

File improve-skip-response-time.patch, 1.2 KB (added by Roger Siddons <dizygotheca@…>, 6 years ago)
  • mythtv/libs/libmythtv/avformatdecoder.cpp

    diff --git a/mythtv/libs/libmythtv/avformatdecoder.cpp b/mythtv/libs/libmythtv/avformatdecoder.cpp
    index 58d5314..c74d9b8 100644
    a b bool AvFormatDecoder::GetFrame(DecodeType decodetype) 
    45494549
    45504550    while (!allowedquit)
    45514551    {
     4552        if  (m_parent->SeekRequested())
     4553        {
     4554            LOG(VB_PLAYBACK, LOG_DEBUG,
     4555                LOC + "Terminating frame decoding due to a pending seek");
     4556            allowedquit = true;
     4557            continue;
     4558        }
     4559
    45524560        if (decodetype & kDecodeAudio)
    45534561        {
    45544562            if (((currentTrack[kTrackTypeAudio] < 0) ||
  • mythtv/libs/libmythtv/mythplayer.h

    diff --git a/mythtv/libs/libmythtv/mythplayer.h b/mythtv/libs/libmythtv/mythplayer.h
    index 4037c71..373bd42 100644
    a b class MTV_PUBLIC MythPlayer 
    214214    bool    CanSupportDoubleRate(void);
    215215    bool    GetScreenShot(int width = 0, int height = 0, QString filename = "");
    216216    bool    IsWatchingInprogress(void) const;
     217    bool    SeekRequested(void) const         { return decoderSeek >= 0; }
    217218
    218219    // Non-const gets
    219220    virtual char *GetScreenGrabAtFrame(uint64_t frameNum, bool absolute,