Ticket #12396: 0323-ticket12396-.srt-subs-go-out-of-sync.patch

File 0323-ticket12396-.srt-subs-go-out-of-sync.patch, 970 bytes (added by warpme@…, 3 years ago)

workaround for .srt de-sync after seeks

  • mythtv/libs/libmythtv/subtitlescreen.cpp

    diff -Naur mythtv-master-20170809-ga1823f3-old/mythtv/libs/libmythtv/subtitlescreen.cpp mythtv-master-20170809-ga1823f3-new/mythtv/libs/libmythtv/subtitlescreen.cpp
    old new  
    21502150        //    playPos = (uint64_t)
    21512151        //        ((currentFrame->frameNumber / video_frame_rate) * 1000);
    21522152        //else
    2153         //playPos = m_player->GetDecoder()->NormalizeVideoTimecode(currentFrame->timecode);
    2154         //
    2155         // Change of plans.  Just ask the player how many milliseconds
    2156         // have been played so far.
    2157         playPos = m_player->GetSecondsPlayed(false, 1);
     2153        playPos = m_player->GetDecoder()->NormalizeVideoTimecode(currentFrame->timecode);
    21582154    }
    21592155    playPos -= playPosAdj;
    21602156    if (playPos != 0)