Logo Search packages:      
Sourcecode: vdr-plugin-dvd version File versions  Download package

int cDvdPlayer::GotoPart ( int  part )

goto to the Part

return set Part ..

Definition at line 2233 of file player-dvd.c.

Referenced by NextPart(), and PreviousPart().

{
      int titleNo, chapterNumber, chapterNo;
      if(!DVDActiveAndRunning()) return -1;
      LOCK_THREAD;
      DEBUG_NAV("DVD NAV SPU clear & empty %s:%d\n", __FILE__, __LINE__);
      Empty();

      dvdnav_current_title_info(nav, &titleNo, &chapterNo);
      dvdnav_get_number_of_parts(nav, titleNo, &chapterNumber);

      if(part>chapterNumber) part=1;
      if(part<=0) part=chapterNumber;

      if (stillTimer == 0)
            dvdnav_part_play(nav, titleNo, part);

      Play();

      return part;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index