Commit 181b3b11 authored by Thomas Guillem's avatar Thomas Guillem

upnp: change server item type to directory

An item becomes a node once it's opened by the playlist.
parent 152cd51d
......@@ -321,14 +321,14 @@ bool MediaServerList::addServer( MediaServerDesc* desc )
if ( desc->isSatIp )
{
p_input_item = input_item_NewWithTypeExt( desc->location.c_str(), desc->friendlyName.c_str(), 0,
NULL, 0, -1, ITEM_TYPE_NODE, 1);
NULL, 0, -1, ITEM_TYPE_DIRECTORY, 1);
} else {
char* psz_mrl;
if( asprintf(&psz_mrl, "upnp://%s?ObjectID=0", desc->location.c_str() ) < 0 )
return false;
p_input_item = input_item_NewWithTypeExt( psz_mrl, desc->friendlyName.c_str(), 0,
NULL, 0, -1, ITEM_TYPE_NODE, 1);
NULL, 0, -1, ITEM_TYPE_DIRECTORY, 1);
free( psz_mrl );
}
if ( !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