I have a simple block of code in which I read a movie's size to get the width.
BOOL isHD;
if ([[NSFileManager defaultManager] fileExistsAtPath: filePath]) {
QTMovie *movie = [QTMovie movieWithFile: filePath error: nil];
NSValue *movieSize = [movie attributeForKey:QTMovieNaturalSizeAttribute];
int width = [movieSize sizeValue].width;
if (width > 1200)
isHD = YES;
}
My problem is that after this code is read I have a "QTKitServer-(PID)" process left in Activity Monitor that doesn't go away until I quit my app. I thought "movie" would auto release... What am I doing wrong here?