diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-12-02 22:27:33 +0100 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-12-17 20:15:07 +0100 |
commit | 5a2947c9d08ac6a1f5f3f335cad103c0da213897 (patch) | |
tree | 6d4916f6d27d4b8f6f25523a7c08e135d9884212 | |
parent | fdea35a71b6a175c26bb2e73748e409a986c4458 (diff) | |
download | mpv-5a2947c9d08ac6a1f5f3f335cad103c0da213897.tar.bz2 mpv-5a2947c9d08ac6a1f5f3f335cad103c0da213897.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.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m index 3fa6da1f03..9efeeb274d 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) { |