Commit 3f6c9792 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx/framework: Don't accept nil mediaPlayer.

parent 5ebb3da9
...@@ -104,6 +104,12 @@ static VLCExtensionsManager *sharedManager = nil; ...@@ -104,6 +104,12 @@ static VLCExtensionsManager *sharedManager = nil;
{ {
if (_player == player) if (_player == player)
return; return;
// Don't set a NULL mediaPlayer.
// so that we always have an input around.
if (!player)
return;
NSNotificationCenter *center = [NSNotificationCenter defaultCenter]; NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
[center removeObserver:self name:VLCMediaPlayerStateChanged object:_player]; [center removeObserver:self name:VLCMediaPlayerStateChanged object:_player];
......
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