summaryrefslogtreecommitdiff
path: root/avmedia/source/quicktime/framegrabber.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'avmedia/source/quicktime/framegrabber.cxx')
-rw-r--r--avmedia/source/quicktime/framegrabber.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/avmedia/source/quicktime/framegrabber.cxx b/avmedia/source/quicktime/framegrabber.cxx
index 5da2aa2f2836..d6b51290ccce 100644
--- a/avmedia/source/quicktime/framegrabber.cxx
+++ b/avmedia/source/quicktime/framegrabber.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,8 +50,8 @@ FrameGrabber::FrameGrabber( const uno::Reference< lang::XMultiServiceFactory >&
{
OSErr result;
- NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
- // check the version of QuickTime installed
+ NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
+ // check the version of QuickTime installed
result = Gestalt(gestaltQuickTime,&mnVersion);
if ((result == noErr) && (mnVersion >= QT701))
{
@@ -83,7 +83,7 @@ bool FrameGrabber::create( const ::rtl::OUString& rURL )
{
bool bRet = false;
maURL = rURL;
- NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
+ NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
NSString* aNSStr = [[[NSString alloc] initWithCharacters: rURL.getStr() length: rURL.getLength()]stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding] ;
NSURL* aURL = [NSURL URLWithString:aNSStr ];
@@ -91,7 +91,7 @@ bool FrameGrabber::create( const ::rtl::OUString& rURL )
mpMovie = [mpMovie initWithURL:aURL error:nil];
if(mpMovie)
- {
+ {
[mpMovie retain];
bRet = true;
}
@@ -107,7 +107,7 @@ uno::Reference< graphic::XGraphic > SAL_CALL FrameGrabber::grabFrame( double fMe
throw (uno::RuntimeException)
{
uno::Reference< graphic::XGraphic > xRet;
-
+
NSImage* pImage = [mpMovie frameImageAtTime: QTMakeTimeWithTimeInterval(fMediaTime)];
NSData *pBitmap = [pImage TIFFRepresentation];
long nSize = [pBitmap length];