osx_notifications: Check if user notifications classes exist to prevent crash on...
authorMarvin Scholz <epirat07@gmail.com>
Fri, 23 Oct 2015 11:11:29 +0000 (13:11 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 23 Oct 2015 11:15:06 +0000 (13:15 +0200)
commitbf294ee5cc3830b05a4505fb1624191b70244e81
tree100862a31cf0a223a689e0fc0893c632693ce81d
parenteed767fc879e8deb7bec0e17e939534a3a34130a
osx_notifications: Check if user notifications classes exist to prevent crash on 10.7

Add checks for NSUserNotification and NSUserNotificationCenter so we do not
use them on OS X 10.7 and below, to prevent VLC from crashing if it
is compiled on 10.8 or higher but ran on 10.7 or below.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/notify/osx_notifications.m