[vlc-commits] macosx: fix resume playback for file urls containing whitespaces
David Fuhrmann
git at videolan.org
Sun Jun 22 22:01:12 CEST 2014
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Jun 22 22:00:54 2014 +0200| [4cdf312ea0ddfb5441d05f70903c520469100032] | committer: David Fuhrmann
macosx: fix resume playback for file urls containing whitespaces
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4cdf312ea0ddfb5441d05f70903c520469100032
---
modules/gui/macosx/playlist.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index c24db74..b4ef157 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1544,7 +1544,7 @@
if (url.length < 1)
return;
- if (![[NSURL URLWithString:url] isFileURL])
+ if ([url rangeOfString:@"file://" options:NSCaseInsensitiveSearch].location != 0)
return;
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
More information about the vlc-commits
mailing list