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

playlist demux: do not set empty art URL

parent 4fa1af77
......@@ -210,7 +210,7 @@ static int Demux( demux_t *p_demux )
}
else
{
if( !strcmp( psz_elname, "url" ) )
if( !strcmp( psz_elname, "url" ) && *node )
{
free( psz_art_url );
psz_art_url = strdup( node );
......
......@@ -547,7 +547,7 @@ static bool set_item_info SIMPLE_INTERFACE
input_item_SetDescription(p_input, psz_value);
else if (!strcmp(psz_name, "info"))
input_item_SetURL(p_input, psz_value);
else if (!strcmp(psz_name, "image"))
else if (!strcmp(psz_name, "image") && *psz_value)
input_item_SetArtURL(p_input, psz_value);
return true;
}
......
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