Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6323 in orxonox.OLD for branches/avi_play/src


Ignore:
Timestamp:
Dec 27, 2005, 5:38:24 PM (19 years ago)
Author:
hdavid
Message:

branches\avi_play: some fixes

Location:
branches/avi_play/src
Files:
3 edited

Legend:

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

    r6320 r6323  
    9292  // you will get ugly fragments
    9393  if(frame_number < 2)
     94  {
     95    // go to the begin of the video
     96    av_seek_frame(format_context, video_stream, 0, AVSEEK_FLAG_BACKWARD);
     97    frame_num = 0;
    9498    return this->getNextFrame();
     99  }
    95100  else
    96101  {
     
    111116    codec_context->hurry_up = 0;
    112117 
     118    frame_num = frame_number;
     119
    113120    return this->getNextFrame();
    114121  }
  • branches/avi_play/src/lib/graphics/importer/movie_player.cc

    r6322 r6323  
    8383{
    8484  texture = media_container->getFrame(start_frame);
     85
    8586  status = PLAY;
    8687}
     
    8990{
    9091  if(status == STOP)
    91     texture = media_container->getFrame(2);
     92    texture = media_container->getFrame(0);
    9293  status = PLAY;
    9394}
     
    110111  {
    111112    texture = media_container->getNextFrame();
     113    //PRINTF(0)("frame_number: %i\n", media_container->getFrameNumber());
    112114    if(texture == NULL)
    113115      status = STOP;
  • branches/avi_play/src/subprojects/importer/movie_player_test.cc

    r6321 r6323  
    2828
    2929  movie_player->printInformation();
     30
     31  movie_player->start(0);
    3032}
    3133
     
    6062{
    6163  movie_player->tick(dt);
    62 
    63   PRINTF(1)("Status %i\n", movie_player->getStatus());
    6464}
    6565
Note: See TracChangeset for help on using the changeset viewer.