Commit 5cad8b51 authored by Austin Burrow's avatar Austin Burrow Committed by Rémi Denis-Courmont

Fixed an issue where http:// was being appended to certain inputs.

The issue started because VLC would append http:// on any unknown
protocol address. This "feature" has been removed because it caused
users a headache.  Users would try to manually enter an address for,
let's say, udp:// and VLC would then handle it has http://udp://.
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 52ce2e5f
......@@ -880,13 +880,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
}
else
{
NSString *o_url = [o_net_http_url stringValue];
if ( ![o_url hasPrefix:@"http:"] && ![o_url hasPrefix:@"ftp:"]
&& ![o_url hasPrefix:@"mms"] && ![o_url hasPrefix:@"rtsp"] && ![o_url hasPrefix:@"rtmp"] )
o_mrl_string = [NSString stringWithFormat: @"http://%@", o_url];
else
o_mrl_string = o_url;
o_mrl_string = [o_net_http_url stringValue];
}
[o_mrl setStringValue: o_mrl_string];
}
......
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