vlc/vlc-2.0 | branch: master | Felix Paul Kühne <[email protected]> | Wed Aug 22 16:16:46 2012 +0200| [0e79f6ff1d6fcfe13d557b4114c4769e4687b0ef] | committer: Felix Paul Kühne
macosx/playlist: added missing sanity check (cherry picked from commit 17c0becaf161355c19c554fd472cefdfbe1b41eb) > http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=0e79f6ff1d6fcfe13d557b4114c4769e4687b0ef --- modules/gui/macosx/playlist.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m index d7f0d1d..1573e8d 100644 --- a/modules/gui/macosx/playlist.m +++ b/modules/gui/macosx/playlist.m @@ -985,12 +985,11 @@ if( [o_outline_view selectedRow] > -1 ) { p_item = [[o_outline_view itemAtRow: [o_outline_view selectedRow]] pointerValue]; + if (!p_item) + return; } else - /*If no item is selected, sort the whole playlist*/ - { - p_item = [self currentPlaylistRoot]; - } + p_item = [self currentPlaylistRoot]; // If no item is selected, sort the whole playlist PL_LOCK; if( p_item->i_children > -1 ) // the item is a node _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
