From 5a2947c9d08ac6a1f5f3f335cad103c0da213897 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 2 Dec 2014 22:27:33 +0100 Subject: 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 --- osdep/macosx_application.m | 2 ++ 1 file changed, 2 insertions(+) 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) { -- cgit v1.2.3