]> git.sesse.net Git - vlc/commitdiff
macosx: fixed the updateInfoPanel crash
authorFelix Paul Kühne <fkuehne@videolan.org>
Wed, 20 May 2009 16:04:24 +0000 (18:04 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Wed, 20 May 2009 16:04:34 +0000 (18:04 +0200)
This also 'fixes' RTSP playback crashes (#2742)

modules/gui/macosx/intf.m

index 0583e7fbb8ad52844c092f6a1a516af9d5650c77..4757ddea3d3082d9a5cfe74c0bdfb9fc81cea8a0 100644 (file)
@@ -1572,8 +1572,10 @@ static void manage_cleanup( void * args )
         {
             playlist_t * p_playlist = pl_Hold( p_intf );
             PL_LOCK;
-            [[self info] updatePanelWithItem: playlist_CurrentPlayingItem( p_playlist )->p_input];
+            playlist_item_t * p_item = playlist_CurrentPlayingItem( p_playlist );
             PL_UNLOCK;
+            if( p_item )
+                [[self info] updatePanelWithItem: p_item->p_input];
             pl_Release( p_intf );
         }
     }