mergeable..

This commit is contained in:
Robin Gareus
2010-02-23 00:54:17 +01:00
parent 209ba390f9
commit 9619eca1e5
3 changed files with 7 additions and 13 deletions

View File

@@ -44,6 +44,7 @@ static OSStatus SetNumberValue(CFMutableDictionaryRef inDict,
- (id)init
{
isPlaying = NO;
lastPTS = 0;
qtVisualContext = nil;
return [super init];
}
@@ -258,14 +259,9 @@ static OSStatus SetNumberValue(CFMutableDictionaryRef inDict,
uint64_t ts = CVGetCurrentHostTime();
QTTime now = [qtMovie currentTime];
#if 1
// TODO - check against real hosttime to skip frames instead of
// slowing down playback
now.timeValue+=(now.timeScale/layer->fps.fps);
#else
now.timeValue +=(((lastPTS?ts-lastPTS:0) * 600)/1000000000);
now.timeScale = 600;
#endif
QTTime duration = [qtMovie duration];
if (QTTimeCompare(now, duration) == NSOrderedAscending)
[qtMovie setCurrentTime:now];
@@ -286,19 +282,17 @@ static OSStatus SetNumberValue(CFMutableDictionaryRef inDict,
CVOpenGLTextureRelease(currentFrame);
currentFrame = newPixelBuffer;
newFrame = YES;
#if 1
#else
#ifdef NEWOSX
MoviesTask([qtMovie quickTimeMovie], 0);
#endif
}
[lock unlock];
[QTMovie exitQTKitOnThread];
#if 1
#ifndef NEWOSX
MoviesTask([qtMovie quickTimeMovie], 0);
#else
lastPTS = ts;
#endif
lastPTS = ts;
[pool release];
return rv;
}

View File

@@ -499,7 +499,7 @@ static OSStatus SetNumberValue(CFMutableDictionaryRef inDict,
- (bool)needPreview
{
#if 1
#ifndef NEWOSX
return doPreview;
#else
// we wannt preview only if there is a panel attacched to the view (to show it)

View File

@@ -215,7 +215,7 @@
#define WITH_FREI0R 1
#define BUILD_NUMBER 52
#define BUILD_NUMBER 62
#define OSX_VERSION 0.99