|
Revision 9769, 1.5 kB
(checked in by robert, 4 years ago)
|
|
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?
"
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | #ifndef QTUTILS_HEADER_ |
|---|
| 11 | #define QTUTILS_HEADER_ |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | #ifdef __APPLE__ |
|---|
| 21 | #include <QuickTime/QuickTime.h> |
|---|
| 22 | #include <Carbon/Carbon.h> |
|---|
| 23 | #define QT_HANDLE_IMAGES_ALSO |
|---|
| 24 | #else |
|---|
| 25 | #include <QTML.h> |
|---|
| 26 | #include <Movies.h> |
|---|
| 27 | #include <Quickdraw.h> |
|---|
| 28 | #include <QDOffscreen.h> |
|---|
| 29 | #include <QuicktimeComponents.h> |
|---|
| 30 | #include <FixMath.h> |
|---|
| 31 | #include <CGBitmapContext.h> |
|---|
| 32 | #include <CGImage.h> |
|---|
| 33 | #include <CGColorSpace.h> |
|---|
| 34 | #include <ImageCompression.h> |
|---|
| 35 | |
|---|
| 36 | extern "C" { |
|---|
| 37 | |
|---|
| 38 | inline void GetPortBounds(GWorldPtr gw, Rect* rect) { |
|---|
| 39 | (*rect) = (gw->portRect); |
|---|
| 40 | } |
|---|
| 41 | |
|---|
| 42 | inline PixMapHandle GetPortPixMap (CGrafPtr port) { |
|---|
| 43 | return port->portPixMap; |
|---|
| 44 | } |
|---|
| 45 | |
|---|
| 46 | } |
|---|
| 47 | |
|---|
| 48 | #define SetRect MacSetRect |
|---|
| 49 | #define OffsetRect MacOffsetRect |
|---|
| 50 | |
|---|
| 51 | #endif |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | OSStatus MakeFSSpecFromPath(const char* path, FSSpec* spec); |
|---|
| 55 | |
|---|
| 56 | |
|---|
| 57 | OSStatus MakeMovieFromPath(const char* path, Movie* movie, short& resref); |
|---|
| 58 | |
|---|
| 59 | |
|---|
| 60 | #endif |
|---|