Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: QuickTime-API Digest, Vol 4, Issue 207
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QuickTime-API Digest, Vol 4, Issue 207




On Jun 23, 2007, at 11:45 AM, A.C. wrote:

I play first a movie in a QTMovieView, then I created

a two seconds movie from the movie, save it in the

same file name, then reload it into the same

QTMovieView, what shown is still the original movie,

not the two second movie I just created, I have to

re-run the program to see the new movie, why? seems

QTMovieView 'caches' movies it plays, even I assign a

new movie file, then assign again the old movie file,

the old movie still plays, not the new content in the

old movie name, why? a simple code that re-produce the

problem follows. Thanks for any help.


Try adding an autorelease pool to the code:

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
movie = [[QTMovie alloc] initWithFile:dst error:&err];

// overwrite file here

[ movie release];
[ pool release];

Does that fix the problem?


Tim Monroe
QuickTime Engineering
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.