Commit be05e83b authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Use NSAssert for impossible cases.

parent e1f09197
......@@ -149,24 +149,17 @@
int i_return = 0;
playlist_item_t *p_item = NULL;
playlist_t * p_playlist = pl_Yield( VLCIntf );
if( outlineView != o_outline_view )
{
vlc_object_release( p_playlist );
return 0;
}
NSAssert( outlineView != o_outline_view )
if( item == nil )
{
/* root object */
if( !item )
p_item = p_playlist->p_root_category;
}
else
{
p_item = (playlist_item_t *)[item pointerValue];
}
if( p_item )
i_return = p_item->i_children;
vlc_object_release( p_playlist );
pl_Release( VLCIntf );
return i_return > 0 ? i_return : 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment