Ticket #1820: NuppelVideoPlayer.cpp.diff

File NuppelVideoPlayer.cpp.diff, 1.2 KB (added by anonymous, 14 years ago)

Patch for NuppelVideoPlayer?.cpp against v0.19

  • /home/amb/mythtv/v0.19/mythtv/libs/libmythtv/NuppelVideoPlayer.

    diff -u /home/amb/mythtv/v0.19/mythtv/libs/libmythtv/NuppelVideoPlayer.orig.cpp /home/amb/mythtv/v0.19/mythtv/libs/libmythtv/NuppelVideoPlayer.cpp
    old new  
    43464346
    43474347    if (honorCutList && (!deleteMap.isEmpty()))
    43484348    {
    4349         if (videoOutput->GetLastDecodedFrame()->frameNumber >= dm_iter.key())
     4349        if (videoOutput->GetLastDecodedFrame()->frameNumber >= dm_iter.key() ||
     4350            (videoOutput->GetLastDecodedFrame()->frameNumber == -1 && dm_iter.key() == 0))
    43504351        {
    43514352            while((dm_iter.data() == 1) && (dm_iter != deleteMap.end()))
    43524353            {
     
    43554356                dm_iter++;
    43564357                msg += QString(" to %1").arg((int)dm_iter.key());
    43574358                VERBOSE(VB_GENERAL, msg);
     4359                if(dm_iter.key() == GetTotalFrameCount())
     4360                   return false;
    43584361                GetDecoder()->DoFastForward(dm_iter.key());
    43594362                GetDecoder()->ClearStoredData();
    43604363                ClearAfterSeek();