Ticket #2012: cutpoint_selection.diff

File cutpoint_selection.diff, 2.5 KB (added by rd.mora@…, 19 years ago)
  • libs/libmythtv/NuppelVideoPlayer.cpp

     
    45004500void NuppelVideoPlayer::HandleSelect(bool allowSelectNear)
    45014501{
    45024502    bool deletepoint = false;
    4503     QMap<long long, int>::Iterator i;
    45044503    int direction = 0;
     4504    if(!deleteMap.isEmpty())
     4505    {
     4506        // Lower bound will first the lowest value equal or greater to framesPlayed.
     4507        // There are only four possible values:
     4508        //   lower_bound == end
     4509        //     There is no value higher than framesPlayed, thus we want --end (unless
     4510        //     of course there is nothing in deleteMap)
     4511        //   lower_bound == start
     4512        //     The first value is greater than (or equal) to framesplayed - use it.
     4513        //   *lower_bound == framesPlayed
     4514        //     Enough said
     4515        //   else
     4516        //     The value lies between lower_bound and it predecessor - find
     4517        //     which is closer to framesPlayed