From: Pierre d'Herbemont Date: Fri, 29 Jan 2010 12:29:33 +0000 (+0100) Subject: macosx/framework: Don't accept nil mediaPlayer. X-Git-Tag: 1.1.0-ff~708 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3f6c97920eba931875b2011e98e170ddede2fbfb;p=vlc macosx/framework: Don't accept nil mediaPlayer. --- diff --git a/projects/macosx/framework/Sources/VLCExtensionsManager.m b/projects/macosx/framework/Sources/VLCExtensionsManager.m index 85f38965b4..fe57fb7ef9 100644 --- a/projects/macosx/framework/Sources/VLCExtensionsManager.m +++ b/projects/macosx/framework/Sources/VLCExtensionsManager.m @@ -104,6 +104,12 @@ static VLCExtensionsManager *sharedManager = nil; { if (_player == player) return; + + // Don't set a NULL mediaPlayer. + // so that we always have an input around. + if (!player) + return; + NSNotificationCenter *center = [NSNotificationCenter defaultCenter]; [center removeObserver:self name:VLCMediaPlayerStateChanged object:_player];