Ticket #1827: dvd_title_jumping.diff

File dvd_title_jumping.diff, 1.9 KB (added by skamithi, 19 years ago)

allowing jumping to the next title when you reach the end of the title. previous restriction was that jumping is only allowed if chapters < 3

  • libs/libmythtv/DVDRingBuffer.h

     
    6060
    6161    bool JumpToTitle(void) { return jumptotitle; }
    6262    double GetFrameRate(void);
     63    bool StartOfTitle(void) { return (part == 0); }
     64    bool EndOfTitle(void)   { return (!titleParts) || (part == (titleParts - 1)); }
    6365   
    6466    // commands
    6567    bool OpenFile(const QString &filename);
  • libs/libmythtv/tv_play.cpp

     
    24052405                if (prbuffer->InDVDMenuOrStillFrame())
    24062406                    UpdateOSDSeekMessage(tr("Skip Back Not Allowed"),
    24072407                                         osd_general_timeout);
    2408                 else if (prbuffer->DVD()->NumPartsInTitle() > 2)
     2408                else if (!prbuffer->DVD()->StartOfTitle())
    24092409                {
    24102410                    nvp->ChangeDVDTrack(0);
    24112411                    UpdateOSDSeekMessage(tr("Previous Chapter"),
     
    24432443                    UpdateOSDSeekMessage(tr("Skip Still Frame"),
    24442444                            osd_general_timeout);
    24452445                }
    2446                 else if (prbuffer->DVD()->NumPartsInTitle() > 2)
     2446                else if (!prbuffer->DVD()->EndOfTitle())
    24472447                {
    24482448                    nvp->ChangeDVDTrack(1);
    24492449                    UpdateOSDSeekMessage(tr("Next Chapter"),
    24502450                            osd_general_timeout);
    24512451                }
    2452                 else
     2452                else if (!prbuffer->DVD()->NumMenuButtons())
    24532453                {
    24542454                    uint titleLength = prbuffer->DVD()->GetTotalTimeOfTitle();
    24552455                    uint chapterLength = prbuffer->DVD()->GetChapterLength();