Commit 0d4609bf authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

MacOSX/Framework/VLCMediaList.m: new aspect for the node hierarchy view.

parent 083f03e8
......@@ -67,5 +67,6 @@ extern NSString * VLCMediaListItemDeleted;
/* Media list aspect */
- (VLCMediaListAspect *)hierarchicalAspect;
- (VLCMediaListAspect *)hierarchicalNodeAspect;
- (VLCMediaListAspect *)flatAspect;
@end
......@@ -229,6 +229,16 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
return hierarchicalAspect;
}
- (VLCMediaListAspect *)hierarchicalNodeAspect
{
if( hierarchicalAspect )
return hierarchicalAspect;
libvlc_media_list_view_t * p_mlv = libvlc_media_list_hierarchical_node_view( p_mlist, NULL );
hierarchicalAspect = [[VLCMediaListAspect mediaListAspectWithLibVLCMediaListView: p_mlv] retain];
libvlc_media_list_view_release( p_mlv );
return hierarchicalAspect;
}
- (VLCMediaListAspect *)flatAspect
{
if( flatAspect )
......
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