Commit 44d674dd authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Jean-Baptiste Kempf

Fix the type guess: this can be a protocol only if you xan find a :// in it.

(and add ftp and smb to the list)
parent 64828ecc
......@@ -788,10 +788,12 @@ static void GuessType( input_item_t *p_item)
{ "dvb", ITEM_TYPE_CARD },
{ "qpsk", ITEM_TYPE_CARD },
{ "sdp", ITEM_TYPE_NET },
{ "ftp", ITEM_TYPE_NET },
{ "smb", ITEM_TYPE_NET },
{ NULL, 0 }
};
if( !p_item->psz_uri )
if( !p_item->psz_uri || !strstr( p_item->psz_uri, "://" ) )
{
p_item->i_type = ITEM_TYPE_FILE;
return;
......
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