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

macosx: Use NSAssert for impossible cases.

parent e1f09197
...@@ -149,24 +149,17 @@ ...@@ -149,24 +149,17 @@
int i_return = 0; int i_return = 0;
playlist_item_t *p_item = NULL; playlist_item_t *p_item = NULL;
playlist_t * p_playlist = pl_Yield( VLCIntf ); playlist_t * p_playlist = pl_Yield( VLCIntf );
if( outlineView != o_outline_view ) NSAssert( outlineView != o_outline_view )
{
vlc_object_release( p_playlist );
return 0;
}
if( item == nil ) if( !item )
{
/* root object */
p_item = p_playlist->p_root_category; p_item = p_playlist->p_root_category;
}
else else
{
p_item = (playlist_item_t *)[item pointerValue]; p_item = (playlist_item_t *)[item pointerValue];
}
if( p_item ) if( p_item )
i_return = p_item->i_children; i_return = p_item->i_children;
vlc_object_release( p_playlist );
pl_Release( VLCIntf );
return i_return > 0 ? i_return : 0; 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