Commit f8439038 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

libvlc: do not assume playlist exists when preparsing

This could crash. The playlist needs to be started (at least until
someone resolves bug #5460).
parent 79fd9ab7
......@@ -591,8 +591,8 @@ libvlc_media_get_duration( libvlc_media_t * p_md )
static int media_parse(libvlc_media_t *media)
{
/* TODO: fetcher and parser independent of playlist */
playlist_t *playlist =
libvlc_priv (media->p_libvlc_instance->p_libvlc_int)->p_playlist;
#warning FIXME: remove pl_Get
playlist_t *playlist = pl_Get(media->p_libvlc_instance->p_libvlc_int);
/* TODO: Fetch art on need basis. But how not to break compatibility? */
playlist_AskForArtEnqueue(playlist, media->p_input_item );
......
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