[vlc-devel] Ticket #5730 - how to access playlist items
zemanm17 at fel.cvut.cz
zemanm17 at fel.cvut.cz
Sun Feb 24 20:28:17 CET 2013
I've started my work on Ticket #5730. So far I've managed to create the GUI element (a button) that is going to perform
the shuffle.
Now, I'm struggling with accessing the playlist elements themselves. My method void StandardPLPanel::shufflePlaylist() resides
in standardpanel.cpp. I've tried this:
FOREACH_ARRAY( playlist_item_t *p_del, THEPL->all_items )
free( p_del->pp_children );
vlc_gc_decref( p_del->p_input );
free( p_del );
FOREACH_END();
I know this is used to destroy the list, but I needed verify somehow that I'm able to access the playlist items. However, it doesn't
do anything.
Could anyone show me how to iterate through playlist items?
Thanks,
Martin
More information about the vlc-devel
mailing list