Changeset 5975 in orxonox.OLD for branches/avi_play/src/lib/graphics/importer/media_container.cc
- Timestamp:
- Dec 7, 2005, 5:17:06 PM (18 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.