Commit 5b676ba1 authored by Rémi Duraffort's avatar Rémi Duraffort

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 6dce48f6
......@@ -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