[vlc-devel] how to get path of current playlist_item

Jan Winter jwinter at gmx.net
Mon Sep 12 16:18:37 CEST 2011


Hi,

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?

Thanks
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110912/fd4f4a94/attachment.html>


More information about the vlc-devel mailing list