[vlc-devel] commit: macosx/framework: Don't accept nil mediaPlayer. (Pierre d' Herbemont )

git version control git at videolan.org
Fri Jan 29 13:30:14 CET 2010


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Jan 29 13:29:33 2010 +0100| [3f6c97920eba931875b2011e98e170ddede2fbfb] | committer: Pierre d'Herbemont 

macosx/framework: Don't accept nil mediaPlayer.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3f6c97920eba931875b2011e98e170ddede2fbfb
---

 .../framework/Sources/VLCExtensionsManager.m       |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/projects/macosx/framework/Sources/VLCExtensionsManager.m b/projects/macosx/framework/Sources/VLCExtensionsManager.m
index 85f3896..fe57fb7 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];
 




More information about the vlc-devel mailing list