Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 7, 2005, 5:17:06 PM (18 years ago)
Author:
hdavid
Message:

branches/avi_play: some changes

File:
1 edited

Legend:

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

    r5962 r5975  
    3434MediaContainer::MediaContainer(const char* filename)
    3535{
     36  /* set the class id for the base object */
     37  this->setClassID(CL_MEDIA_CONTAINER, "MediaContainer");
     38
    3639  /* register all formats and codecs */
    3740  av_register_all();
    3841
    39   if (fileName != NULL)
     42  if (filename != NULL)
    4043    this->loadMedia(filename);
    4144
     
    6063}
    6164
    62 void MediaContainer::loadMedia(char* filename)
     65void MediaContainer::loadMedia(const char* filename)
    6366{
     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);
    6470
    6571}
Note: See TracChangeset for help on using the changeset viewer.