[vlc-commits] macosx: fix resume playback for file urls containing whitespaces

David Fuhrmann git at videolan.org
Sun Jun 29 23:26:08 CEST 2014


vlc/vlc-2.2 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Jun 22 22:00:54 2014 +0200| [2ca7e203357cf3530a67c97e895cad16187af679] | committer: Jean-Baptiste Kempf

macosx: fix resume playback for file urls containing whitespaces

(cherry picked from commit 4cdf312ea0ddfb5441d05f70903c520469100032)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=2ca7e203357cf3530a67c97e895cad16187af679
---

 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