mirror of https://code.videolan.org/videolan/vlc
libvlc: do not assume playlist exists when preparsing
This could crash. The playlist needs to be started (at least until someone resolves bug #5460).
This commit is contained in:
parent
79fd9ab77c
commit
f843903810
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue