Changeset 6323 in orxonox.OLD for branches/avi_play
- Timestamp:
- Dec 27, 2005, 5:38:24 PM (19 years ago)
- Location:
- branches/avi_play/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/lib/graphics/importer/media_container.cc
r6320 r6323 92 92 // you will get ugly fragments 93 93 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; 94 98 return this->getNextFrame(); 99 } 95 100 else 96 101 { … … 111 116 codec_context->hurry_up = 0; 112 117 118 frame_num = frame_number; 119 113 120 return this->getNextFrame(); 114 121 } -
branches/avi_play/src/lib/graphics/importer/movie_player.cc
r6322 r6323 83 83 { 84 84 texture = media_container->getFrame(start_frame); 85 85 86 status = PLAY; 86 87 } … … 89 90 { 90 91 if(status == STOP) 91 texture = media_container->getFrame( 2);92 texture = media_container->getFrame(0); 92 93 status = PLAY; 93 94 } … … 110 111 { 111 112 texture = media_container->getNextFrame(); 113 //PRINTF(0)("frame_number: %i\n", media_container->getFrameNumber()); 112 114 if(texture == NULL) 113 115 status = STOP; -
branches/avi_play/src/subprojects/importer/movie_player_test.cc
r6321 r6323 28 28 29 29 movie_player->printInformation(); 30 31 movie_player->start(0); 30 32 } 31 33 … … 60 62 { 61 63 movie_player->tick(dt); 62 63 PRINTF(1)("Status %i\n", movie_player->getStatus());64 64 } 65 65
Note: See TracChangeset
for help on using the changeset viewer.