Commit 9b078b58 authored by Konstantin Pavlov's avatar Konstantin Pavlov

ML: Discard items with no URI in Append Queue.

This fixes the crash when Media Library tries to add "My Videos" / "My
Pictures" / etc. playlist entries to a ML when browsing them through "My
Computer" service discovery.
parent a9e4ad23
......@@ -258,7 +258,7 @@ int AddPeople( media_library_t *p_ml, const char *psz_name,
int AddInputItem( media_library_t *p_ml, input_item_t *p_input )
{
assert( p_ml );
if( !p_input )
if( !p_input || !p_input->psz_uri )
return VLC_EGENERIC;
int i_ret = VLC_SUCCESS;
......
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