diff options
author | ritsuka <[email protected]> | 2009-02-28 16:49:21 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2009-02-28 16:49:21 +0000 |
commit | 6558d743ce95723cdbf40eacc241469deffc3866 (patch) | |
tree | a97ba2a3cd7472f123d0e92c48e54d431a6b1bb5 /macosx/HBPreviewController.mm | |
parent | 0bc9a7d79b9a6012f9f104aac64c118a6bc1befa (diff) |
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
Diffstat (limited to 'macosx/HBPreviewController.mm')
-rw-r--r-- | macosx/HBPreviewController.mm | 15 |
1 files 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*/ |