From 6558d743ce95723cdbf40eacc241469deffc3866 Mon Sep 17 00:00:00 2001 From: ritsuka Date: Sat, 28 Feb 2009 16:49:21 +0000 Subject: MacGui: Replaced a quicktime call with a 64bit compatible one. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2178 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/HBPreviewController.mm | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/macosx/HBPreviewController.mm b/macosx/HBPreviewController.mm index 4df065d7d..0eb6500fd 100644 --- a/macosx/HBPreviewController.mm +++ b/macosx/HBPreviewController.mm @@ -1087,22 +1087,21 @@ return YES; [fMovieView setMovie:nil]; aMovie = [QTMovie movieWithFile:path error:nil]; - + /* we get some size information from the preview movie */ - Rect movieBox; - GetMovieBox ([aMovie quickTimeMovie], &movieBox); + NSSize movieSize= [[aMovie attributeForKey:QTMovieNaturalSizeAttribute] sizeValue]; movieBounds = [fMovieView movieBounds]; - movieBounds.size.height = movieBox.bottom - movieBox.top; - + movieBounds.size.height = movieSize.height; + if ([fMovieView isControllerVisible]) movieBounds.size.height += [fMovieView controllerBarHeight]; /* since for whatever the reason I cannot seem to get the [fMovieView controllerBarHeight] * For now just use 15 for additional height as it seems to line up well */ movieBounds.size.height += 15; - - movieBounds.size.width = movieBox.right - movieBox.left; - + + movieBounds.size.width = movieSize.width; + /* We need to find out if the preview movie needs to be scaled down so * that it doesn't overflow our available viewing container (just like for image * in -displayPreview) for HD sources, etc. [fPictureViewArea frame].size.height*/ -- cgit v1.2.3