Commit bc90b532 authored by Felix Paul Kühne's avatar Felix Paul Kühne

* added a version check of the current Mac OS X version, as we require 10.4.x...

* added a version check of the current Mac OS X version, as we require 10.4.x or higher and will definitelly crash on earlier releases.
parent 1ced7291
......@@ -720,6 +720,21 @@ static VLCMain *_o_sharedMainInstance = nil;
[o_controls setupVarMenuItem: o_mi_add_intf target: (vlc_object_t *)p_intf
var: "intf-add" selector: @selector(toggleVar:)];
/* check whether the user runs a valid version of OSX; alert is auto-released */
if( MACOS_VERSION < 10.5f )
{
NSAlert *ourAlert;
int i_returnValue;
ourAlert = [NSAlert alertWithMessageText: _NS("Your version of Mac OS X is not supported")
defaultButton: _NS("Quit")
alternateButton: NULL
otherButton: NULL
informativeTextWithFormat: _NS("VLC media player requires Mac OS X 10.4 or higher.")];
[ourAlert setAlertStyle: NSCriticalAlertStyle];
i_returnValue = [ourAlert runModal];
[NSApp terminate: self];
}
vlc_thread_set_priority( p_intf, VLC_THREAD_PRIORITY_LOW );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment