[vlc-commits] commit: Fixed an issue where http:// was being appended to certain inputs. (Austin Burrow )
git at videolan.org
git at videolan.org
Wed Mar 31 11:02:53 CEST 2010
vlc | branch: master | Austin Burrow <atburrow at gmail.com> | Tue Mar 30 11:57:14 2010 -0500| [5cad8b519c2eac1b92e09b62465c891ea652996f] | committer: 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: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5cad8b519c2eac1b92e09b62465c891ea652996f
---
modules/gui/macosx/open.m | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/modules/gui/macosx/open.m b/modules/gui/macosx/open.m
index 9f86f19..3460c4e 100644
--- a/modules/gui/macosx/open.m
+++ b/modules/gui/macosx/open.m
@@ -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];
}
More information about the vlc-commits
mailing list