Commit 6ff598ed authored by Thomas Guillem's avatar Thomas Guillem

VLCMedia: check libvlc_media_library_media_list() return

libvlc_media_library_media_list() can return NULL.
parent 6a565732
......@@ -73,8 +73,11 @@
{
dispatch_once(&_once, ^{
libvlc_media_list_t * p_mlist = libvlc_media_library_media_list( _mlib );
_allMedia = [VLCMediaList mediaListWithLibVLCMediaList:p_mlist];
libvlc_media_list_release(p_mlist);
if (p_mlist != NULL)
{
_allMedia = [VLCMediaList mediaListWithLibVLCMediaList:p_mlist];
libvlc_media_list_release(p_mlist);
}
});
return _allMedia;
}
......
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