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

void cDvdPlayer::Goto ( int  Seconds,
bool  Still = false 
)

set the position of the actual PGC to the given Seconds

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

References PGCTicksToBlocks().

{
      int64_t CurrentTicks = Seconds * 90000;
      uint32_t CurrentBlockNum, TotalBlockNum;

      if(!DVDActiveAndRunning()) return;

      PGCTicksToBlocks( CurrentTicks, CurrentBlockNum, TotalBlockNum);

      LOCK_THREAD;
      DEBUG_NAV("DVD NAV SPU clear & empty %s:%d\n", __FILE__, __LINE__);
      Empty();

      if ( dvdnav_sector_search( nav, CurrentBlockNum, SEEK_SET) !=
         DVDNAV_STATUS_OK )
      printf("dvd error dvdnav_sector_search: %s\n",
            dvdnav_err_to_string(nav));

      Play();
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index