[vlc-commits] macosx/playlist: add another sanity check
Felix Paul Kühne
git at videolan.org
Wed Aug 22 16:38:55 CEST 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Aug 22 16:38:43 2012 +0200| [e32da3cbef3f10e311f00d0a68e2037939a292dc] | committer: Felix Paul Kühne
macosx/playlist: add another sanity check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e32da3cbef3f10e311f00d0a68e2037939a292dc
---
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 60ca1b8..d0f5466 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -997,6 +997,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