Ticket #9023: t9023_livetv_seek_fix_v1.diff

File t9023_livetv_seek_fix_v1.diff, 1.1 KB (added by tralph, 8 years ago)

fix for livetv seeking problems when program transition occurs

  • mythtv/libs/libmythtv/mythplayer.cpp

    diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
    index e5dab68..63d6d6d 100644
    a b void MythPlayer::JumpToProgram(void) 
    23732373    bool newIsDummy = player_ctx->tvchain->GetCardType(newid) == "DUMMY";
    23742374    SetPlayingInfo(*pginfo);
    23752375
     2376    fftime = rewindtime = 0;
    23762377    Pause();
    23772378    ChangeSpeed();
    23782379    ResetCaptions();
    void MythPlayer::WaitForSeek(uint64_t frame, bool override_seeks, 
    34443445                           (allpaused && !deleteMap.IsEditing()) ? true: after;
    34453446    decoder->setExactSeeks(before);
    34463447
     3448    bool islivetvcur = (livetv && player_ctx->tvchain &&
     3449                        !player_ctx->tvchain->HasNext());
     3450
    34473451    uint64_t max = totalFrames;
    3448     if ((livetv || (watchingrecording && player_ctx->recorder &&
     3452    if ((islivetvcur || (watchingrecording && player_ctx->recorder &&
    34493453                   player_ctx->recorder->IsValidRecorder())))
    34503454    {
    34513455        max = (uint64_t)player_ctx->recorder->GetFramesWritten();