Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6382 in orxonox.OLD for branches/avi_play/src/subprojects


Ignore:
Timestamp:
Jan 1, 2006, 7:58:56 PM (19 years ago)
Author:
hdavid
Message:

branches\avi_play: removed memory leak

Location:
branches/avi_play/src/subprojects/importer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/avi_play/src/subprojects/importer/movie_player_test.cc

    r6353 r6382  
    2222
    2323MoviePlayer* movie_player;
     24float start_time;
    2425
    2526void Framework::moduleInit(int argc, char** argv)
    2627{
     28  if( argc <= 1)
     29  {
     30    printf("Wrong arguments try following notations:\n");
     31    printf("./movie_player_test [media_file]\n");
     32    exit(0);
     33  }
     34
    2735  movie_player = new MoviePlayer(argv[1]);
    28 
    2936  movie_player->printInformation();
     37 
     38  //start_time = atoi(argv[2]);
     39  start_time = 0;
    3040}
    3141
     
    3848      {
    3949        case SDLK_1:
    40           movie_player->start(0);
     50          movie_player->start(start_time);
    4151          break;
    4252        case SDLK_2:
  • branches/avi_play/src/subprojects/importer/multitex.cc

    r6353 r6382  
    7474          obj = new PrimitiveModel(PRIM_PLANE, 10.0);
    7575          break;
    76         case SDLK_5:
    77           media_container->loadFrames();
    78           counter = 0;
    79           timer = 0;
    80           SDL_Delay(1000);
    81           break;
    8276        // increase fps
    8377        case SDLK_9:
     
    107101      timer = 0;
    108102      counter = 0;
    109       PRINTF(0)("BEGIN\n");
    110       PRINTF(0)("total_frames: %i\n", media_container->getFrameCount());
    111103    }
    112104  }
Note: See TracChangeset for help on using the changeset viewer.