From 7bf516547bc45d8e48bf3a3f05790817e3e5184f Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Tue, 1 Nov 2011 19:55:47 +0000 Subject: [PATCH] Mac QTKit Video OpenForPlayback conditional Building for versions of OSX prior to Snow Leopard fails since QTMovieOpenForPlaybackAttribute is not available, this patch makes this setting conditional on build support for OS X >= 10.6. --- src/QtMacVideoWindow.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/QtMacVideoWindow.mm b/src/QtMacVideoWindow.mm index 4aa10a180..e57cb5d7f 100644 --- a/src/QtMacVideoWindow.mm +++ b/src/QtMacVideoWindow.mm @@ -115,7 +115,9 @@ void VideoWindow::mediaSelected(QString filename) NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys: file, QTMovieFileNameAttribute, num, QTMovieLoopsAttribute, +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 num, QTMovieOpenForPlaybackAttribute, +#endif nil]; movie = [[QTMovie alloc] initWithAttributes:attributes error:&error];