[vlc-devel] commit: macosx: Assert on cases that should never happen. (Pierre d' Herbemont )
git version control
git at videolan.org
Sun Jul 13 21:59:00 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Jul 13 21:05:19 2008 +0200| [2335fa6b566161fd6e5a3d171191fcf7165345a1]
macosx: Assert on cases that should never happen.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2335fa6b566161fd6e5a3d171191fcf7165345a1
---
modules/gui/macosx/playlist.m | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 4e13ad6..c81aaff 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1617,14 +1617,9 @@
{
[self appendArray: o_array atPos: index enqueue: YES];
}
- /* This should never occur */
- else if( p_node->i_children == -1 )
- {
- vlc_object_release( p_playlist );
- return NO;
- }
else
{
+ assert( p_node->i_children != -1 );
[self appendNodeArray: o_array inNode: p_node
atPos: index enqueue: YES];
}
More information about the vlc-devel
mailing list