Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 29, 2005, 1:49:53 AM (19 years ago)
Author:
hdavid
Message:

branches\avi_play: no big changes, somewhere in MediaPlayer is a big memory leek :-/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/avi_play/src/lib/graphics/importer/movie_player.cc

    r6325 r6330  
    8282}
    8383
    84 void MoviePlayer::start(unsigned int start_frame)
     84void MoviePlayer::start(unsigned int start_time)
    8585{
    8686  status = PLAY;
     
    8888  fps = media_container->getFPS();
    8989
    90   media_container->gotoFrame(start_frame);
     90  media_container->gotoFrame(start_time * fps);
    9191
    92    PRINTF(0)("start\n");
     92   PRINTF(0)("start (start_time: %0.2f)\n", start_time * fps);
    9393}
    9494
     
    125125    current_frame = media_container->getFrameNumber();
    126126    timer += dt;
    127     actuel_frame = timer * fps * speed;
     127    actual_frame = timer * fps * speed;
    128128
    129     if(actuel_frame != current_frame)
     129    if(actual_frame != current_frame)
    130130    {
    131       if(actuel_frame - current_frame == 1)
     131      if(actual_frame - current_frame == 1)
    132132        texture = media_container->getNextFrame();
    133133      else
    134         texture = media_container->skipFrame(actuel_frame - current_frame - 1);
     134        texture = media_container->skipFrame(actual_frame - current_frame - 1);
    135135    }   
    136136    //PRINTF(0)("frame_number: %i\n", media_container->getFrameNumber());
Note: See TracChangeset for help on using the changeset viewer.