[vlc-devel] how to get path of current playlist_item
jwinter at gmx.net
Mon Sep 12 16:18:37 CEST 2011
I'm having trouble getting the path of the current playlist_item.
I tried this:
playlist_t * p_playlist = pl_Get( VLCIntf );
playlist_item_t * p_playlist_item = playlist_CurrentPlayingItem( p_playlist );
input_item_t *p_currentInputItem = p_playlist_item->p_input;
char *url = p_currentInputItem->psz_uri;
but when I try to get the current playlist_item with playlist_CurrentPlayingItem I get that assertion:
12.09.11 16:13:48,383 [0x0-0xbd6bd6].org.videolan.vlc: Assertion failed: (pthread_mutex_lock (p_mutex) == EDEADLK), function vlc_assert_locked, file posix/thread.c, line 292.
Is there a better way to access the path of the current playlist_item or what do I have to do to get rid of the assertion?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vlc-devel