summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-12-02 22:27:33 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2014-12-02 22:27:33 +0100
commit10bc277984cebe0a094698aec9a689c4fdb942cf (patch)
tree40e0697e9371f10f89f3cf0940eab764399f965c
parentd7adb818b01515aedc72c955ccf1936a5aa58fa9 (diff)
downloadmpv-10bc277984cebe0a094698aec9a689c4fdb942cf.tar.bz2
mpv-10bc277984cebe0a094698aec9a689c4fdb942cf.tar.xz
cocoa: remove urlencoding for url open events
This fixes using the mpv:// custom protocol on Yosemite were apparently we receive an url which is automatically urlencoded by the system. /cc mpv-player/stable
-rw-r--r--osdep/macosx_application.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m
index 37c3d40773..b4631f9ea9 100644
--- a/osdep/macosx_application.m
+++ b/osdep/macosx_application.m
@@ -233,6 +233,8 @@ Application *mpv_shared_app(void)
options:NSAnchoredSearch
range:NSMakeRange(0, [MPV_PROTOCOL length])];
+ url = [url stringByRemovingPercentEncoding];
+
self.files = @[url];
if (self.willStopOnOpenEvent) {