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

git version control git at videolan.org
Wed May 20 18:24:36 CEST 2009


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

macosx: fixed the updateInfoPanel crash

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

Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>

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

 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