[vlc-devel] commit: macosx: fixed the updateInfoPanel crash ( Felix Paul Kühne )

git version control git at videolan.org
Wed May 20 18:04:35 CEST 2009


vlc | branch: 1.0-bugfix | Felix Paul Kühne <fkuehne at videolan.org> | Wed May 20 18:04:24 2009 +0200| [60ce39b79c755012e77d17c1dc1afe5438e060c5] | committer: Felix Paul Kühne 

macosx: fixed the updateInfoPanel crash

This also 'fixes' RTSP playback crashes (#2742)

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

 modules/gui/macosx/intf.m |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 0583e7f..4757dde 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -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 );
         }
     }




More information about the vlc-devel mailing list