]> git.sesse.net Git - vlc/commitdiff
Fixed an issue where http:// was being appended to certain inputs.
authorAustin Burrow <atburrow@gmail.com>
Tue, 30 Mar 2010 16:57:14 +0000 (11:57 -0500)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 31 Mar 2010 09:02:34 +0000 (12:02 +0300)
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: Rémi Denis-Courmont <remi@remlab.net>
modules/gui/macosx/open.m

index 9f86f19b44e4f8db242a7781707964137998a4ec..3460c4e430bf57e395a423af63b1dfda8ffe7be6 100644 (file)
@@ -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];
 }