Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 26, 2005, 12:59:35 AM (18 years ago)
Author:
hdavid
Message:

branches\avi_play: work on the movie_player

File:
1 edited

Legend:

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

    r6289 r6290  
    3434MediaContainer::MediaContainer(const char* filename)
    3535{
    36   /* set the class id for the base object */
    37   this->setClassID(CL_MEDIA_CONTAINER, "MediaContainer");
    38 
    39   /* register all formats and codecs */
    40   av_register_all();
    41 
    42   fps = 0;
     36  this->init();
    4337
    4438  if (filename != NULL)
     
    4842MediaContainer::MediaContainer()
    4943{
    50   /* set the class id for the base object */
    51   this->setClassID(CL_MEDIA_CONTAINER, "MediaContainer");
    52 
    53   /* register all formats and codecs */
    54   av_register_all();
    55 
    56   fps = 0;
     44  this->init();
    5745}
    5846
     
    8371  av_close_input_file(format_context);
    8472
     73}
     74
     75void MediaContainer::init()
     76{
     77  /* set the class id for the base object */
     78  this->setClassID(CL_MEDIA_CONTAINER, "MediaContainer");
     79
     80  /* register all formats and codecs */
     81  av_register_all();
     82
     83  fps = 0;
    8584}
    8685
Note: See TracChangeset for help on using the changeset viewer.