Ticket #6605: mythtv_LiveTV_Forcing_JumpTo_1.diff

File mythtv_LiveTV_Forcing_JumpTo_1.diff, 1.8 KB (added by Shane Shrybman, 15 years ago)

Test patch for endless LiveTV Forcing Jump To 1

  • mythtv/libs/libmythtv/NuppelVideoPlayer.cpp

    void NuppelVideoPlayer::SwitchToProgram(void) 
    32523252        ClearSubtitles();
    32533253    }
    32543254
     3255    VERBOSE(VB_PLAYBACK, QString("SwitchToProgram(void) "
     3256            "discont: %1 newtype: %2 newid: %3 eof: %4")
     3257            .arg(discontinuity).arg(newtype).arg(newid).arg(eof));
     3258
    32553259    if (discontinuity || newtype)
    32563260    {
    32573261        player_ctx->tvchain->SetProgram(*pginfo);
    void NuppelVideoPlayer::FileChangedCallback(void) 
    33103314
    33113315    player_ctx->buffer->Unpause();
    33123316
     3317    eof = false;
     3318
    33133319    player_ctx->SetNVPChangingBuffers(false);
    33143320
    33153321    player_ctx->LockPlayingInfo(__FILE__, __LINE__);
    void NuppelVideoPlayer::JumpToProgram(void) 
    34133419        GetDecoder()->setExactSeeks(seeks);
    34143420    }
    34153421
     3422    player_ctx->SetNVPChangingBuffers(false);
    34163423    eof = false;
    34173424}
    34183425
    bool NuppelVideoPlayer::StartPlaying(bool openfile) 
    35823589                SwitchToProgram();
    35833590        }
    35843591
    3585         if (player_ctx->tvchain && player_ctx->tvchain->NeedsToJump() &&
    3586             !GetDecoder()->GetWaitForChange())
     3592        if (player_ctx->tvchain && player_ctx->tvchain->NeedsToJump())
    35873593        {
    35883594            JumpToProgram();
    35893595        }
  • mythtv/libs/libmythtv/decoderbase.cpp

    void DecoderBase::Reset(void) 
    7575    framesPlayed = 0;
    7676    framesRead = 0;
    7777
     78    waitingForChange = false;
    7879    ateof = false;
    7980}
    8081