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
This commit is contained in:
Stefano Pigozzi 2014-12-02 22:27:33 +01:00
parent d7adb818b0
commit 10bc277984
1 changed files with 2 additions and 0 deletions

View File

@ -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) {