mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user