Show
Ignore:
Timestamp:
02/11/09 18:14:53 (4 years ago)
Author:
robert
Message:

From Riccardo Corsi, "in attach you'll find a patch to cleanup a little bit the (de)initialization code of QuickTime? environment from the quickTime pluging.
It basically removes the static init() and exit() functions,and move them inside the observer class (the one that cleans everything up when the last media is unloaded).

It also add an extra check to clean up on exit if the QuickTime? env is initialized, but no media is succesfully loaded / written (it might happens with streaming resources).

I tested it under WinXP with zero, one and multiple videos.

Stephan reads in copy: could you kindly check if everything runs smooth under OSX as well? Also, have you got a chance to test it with streaming media?
"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/quicktime/QTUtils.h

    r8797 r9769  
    5050 
    5151#endif 
    52  
    53  
    54     /** 
    55      * inits Quicktime, if erase = true, the Quicktime-stuff gets cleaned, call it before your app exits 
    56      * @param erase true, if you want to cleanup quicktime-related stuff 
    57      */ 
    58     void initQuicktime(bool erase = false); 
    59      
    60     /** cleans up all quicktime-related stuff */ 
    61     void exitQuicktime(); 
    6252     
    6353    /** constructs an FSSpec out of an path */