[vlc-commits] macosx/playlist: add another sanity check

Felix Paul Kühne git at videolan.org
Wed Aug 22 16:39:28 CEST 2012


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Aug 22 16:38:43 2012 +0200| [243c1fb61ae1b8fd8f60622e8d30caff000a6e94] | committer: Felix Paul Kühne

macosx/playlist: add another sanity check
(cherry picked from commit e32da3cbef3f10e311f00d0a68e2037939a292dc)

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

 modules/gui/macosx/playlist.m |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 1573e8d..c5575a0 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -940,6 +940,10 @@
 
         PL_LOCK;
         playlist_item_t *p_item = [o_item pointerValue];
+        if (!p_item || !p_item->p_input) {
+            PL_UNLOCK;
+            continue;
+        }
 #ifndef NDEBUG
         msg_Dbg( p_intf, "deleting item %i (of %i) with id \"%i\", pointerValue \"%p\" and %i children", i+1, i_count,
                 p_item->p_input->i_id, [o_item pointerValue], p_item->i_children +1 );



More information about the vlc-commits mailing list