Skip to content

Commit

Permalink
reduce QTKit deprecation barrage to single warning
Browse files Browse the repository at this point in the history
  • Loading branch information
admsyn committed May 5, 2014
1 parent bdab8ff commit cc66863
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libs/openFrameworks/video/ofQTKitGrabber.mm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
//All you wanted to know and more about QTKit Capture can be found here:
// http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/QTKitApplicationProgrammingGuide/UsingQTKit/UsingQTKit.html

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"

#if defined(MAC_OS_X_VERSION_10_9)
#warning Using QTKit, which is deprecated in OSX 10.9
#endif

@interface QTKitVideoGrabber : QTCaptureVideoPreviewOutput
{
QTCaptureSession *session;
Expand Down Expand Up @@ -969,3 +976,5 @@ - (void) dealloc
void ofQTKitGrabber::setDesiredFrameRate(int framerate){
ofLogWarning("ofQTKitGrabber") << "setDesiredFrameRate(): cannot set framerate for QTKitGrabber";
}

#pragma clang diagnostic pop
9 changes: 9 additions & 0 deletions libs/openFrameworks/video/ofQTKitMovieRenderer.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ - (QTTime)frameEndTime: (QTTime)atTime;
- (QTTime)keyframeStartTime:(QTTime)atTime;
@end

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"

#if defined(MAC_OS_X_VERSION_10_9)
#warning Using QTKit, which is deprecated in OSX 10.9
#endif

//--------------------------------------------------------------
//This method is called whenever a new frame comes in from the visual context
//it's called on the back thread so locking is performed in Renderer class
Expand Down Expand Up @@ -698,4 +705,6 @@ - (BOOL) isFinished
return !self.loops && !self.palindrome && _movie.currentTime.timeValue == movieDuration.timeValue;
}

#pragma clang diagnostic pop

@end

0 comments on commit cc66863

Please sign in to comment.