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 ) ...@@ -591,8 +591,8 @@ libvlc_media_get_duration( libvlc_media_t * p_md )
static int media_parse(libvlc_media_t *media) static int media_parse(libvlc_media_t *media)
{ {
/* TODO: fetcher and parser independent of playlist */ /* TODO: fetcher and parser independent of playlist */
playlist_t *playlist = #warning FIXME: remove pl_Get
libvlc_priv (media->p_libvlc_instance->p_libvlc_int)->p_playlist; playlist_t *playlist = pl_Get(media->p_libvlc_instance->p_libvlc_int);
/* TODO: Fetch art on need basis. But how not to break compatibility? */ /* TODO: Fetch art on need basis. But how not to break compatibility? */
playlist_AskForArtEnqueue(playlist, media->p_input_item ); 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