[mythtv-commits] Ticket #851: NuppelVideoPlayer::FrameIsInMap always returns true if breakMap is not empty

MythTV mythtv at cvs.mythtv.org
Wed Dec 21 12:09:01 EST 2005


#851: NuppelVideoPlayer::FrameIsInMap always returns true if breakMap is not
empty
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |       Owner:  ijr
     Type:  defect     |      Status:  new
 Priority:  minor      |   Milestone:     
Component:  mythtv     |     Version:     
 Severity:  medium     |  
-----------------------+----------------------------------------------------
 NuppelVideoPlayer::FrameIsInMap always returns true if breakMap is not
 empty. The result is that the thumbnail preview images always are
 generated from near the end of the recording.

 This patch works for me.
 {{{
 Index: libs/libmythtv/NuppelVideoPlayer.cpp
 ===================================================================
 --- libs/libmythtv/NuppelVideoPlayer.cpp        (revision 8336)
 +++ libs/libmythtv/NuppelVideoPlayer.cpp        (working copy)
 @@ -3790,6 +3790,10 @@
                  ((lastType == MARK_COMM_START) ||
                   (lastType == MARK_CUT_START)))
                  return true;
 +
 +            if ((type == MARK_COMM_START) ||
 +                 (type == MARK_CUT_START))
 +                return false;
          }

          lastType = it.data();

 }}}

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/851>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list