Hey guys, i recently integrated video playback into our engine using the
quicktime plugin (osgdb_qt).  I came across a bug where if you load a movie then
quit/delete that movie and then try to load another movie, the
QuicktimeInitializer will be NULL.  The reasons for this can be seen by
examining the following code from QTUtils.cpp

void initQuicktime(bool erase) {

static osg::ref_ptr<QuicktimeInitializer> s_qt_init = new 
QuicktimeInitializer();
    if (erase)
        s_qt_init = NULL;
}

void exitQuicktime() {
    initQuicktime(true);
}

After my first loaded video is destroyed, initQuicktime(true) is called which
deletes the reference to the QuicktimeInitializer.  After this happens, there is
no getting  it back since it is a static var.  Is there a better way around this
or does this code need to be fixed?

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to