I have an nsview for which I programmatically swap out quartz compositions. I
do this by recreating a new QCRenderer. I have using the V002 movie player
plugin as I had terrible results with the current Apple quartz movie player
patch, it could be related to this problem. After a bunch of switches, I have
noticed that the thread count going up in sync, to the point of instability.
Upon further investigation it appears that the plugin disableExecution or
stopExecution functions are not getting called. When should these get called?
Shouldn't these get called when I recreated the QCRenderer with a new
composition?
I currently have an array of compositions that I keep from querying the
repository. I then reference the array by a number that is passed to the code
that swaps the compositions. I simply create the new renderer and pass in the
composition and the relative view pieces. Seems like the composition is not
getting cleaned up when it is no longer being rendered. Is it possible because
my array is retaining the composition? How do I tell the composition to that
is is no longer being used?
Any ideas?
Here are the swap functions.
Thanks
Josh
[_renderer release];
_renderer = [[QCRenderer alloc]
initWithCGLContext:(CGLContextObj)[[qcView openGLContext] CGLContextObj]
pixelFormat:(CGLPixelFormatObj)[[qcView pixelFormat] CGLPixelFormatObj]
colorSpace:CGDisplayCopyColorSpace(kCGDirectMainDisplay)
composition:[compositions objectAtIndex:comp]]; _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [email protected]