Changeset 5975 in orxonox.OLD for branches/avi_play/src/lib/graphics
- Timestamp:
- Dec 7, 2005, 5:17:06 PM (19 years ago)
- Location:
- branches/avi_play/src/lib/graphics/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/lib/graphics/importer/media_container.cc
r5962 r5975 34 34 MediaContainer::MediaContainer(const char* filename) 35 35 { 36 /* set the class id for the base object */ 37 this->setClassID(CL_MEDIA_CONTAINER, "MediaContainer"); 38 36 39 /* register all formats and codecs */ 37 40 av_register_all(); 38 41 39 if (file Name != NULL)42 if (filename != NULL) 40 43 this->loadMedia(filename); 41 44 … … 60 63 } 61 64 62 void MediaContainer::loadMedia(c har* filename)65 void MediaContainer::loadMedia(const char* filename) 63 66 { 67 /* Open video file */ 68 if (av_open_input_file(&format_context, filename, NULL, 0, NULL) !=0 ) 69 PRINTF(1)("Could not open %s\n", filename); 64 70 65 71 } -
branches/avi_play/src/lib/graphics/importer/media_container.h
r5962 r5975 48 48 GLuint getFrame(int frame_number); 49 49 GLuint getNextFrame(); 50 void loadMedia(c har* filename);50 void loadMedia(const char* filename); 51 51 52 52 int getHeight();
Note: See TracChangeset
for help on using the changeset viewer.