diff options
author | wm4 <wm4@nowhere> | 2013-08-02 17:03:30 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-08-02 17:05:26 +0200 |
commit | 44d6ac06aed7c13cbace543920e706023551c3c2 (patch) | |
tree | f2b352e856c7b4286f873b1cd2f5a9a6465774b2 /core/cpudetect.c | |
parent | f8589c98891b11eea249c998b1dc2fac50c99b46 (diff) | |
download | mpv-44d6ac06aed7c13cbace543920e706023551c3c2.tar.bz2 mpv-44d6ac06aed7c13cbace543920e706023551c3c2.tar.xz |
stream: parse URL escapes for file://
So for example "file:///file%20name.mkv" will open "file name.mkv".
I'm not sure whether we want/need this. The old code didn't do it.
Also, it's not really clear whether this is handled correctly. It
seems the corresponding freedesktop.org "standard" allows a (useless)
hostname part, which we should skip in theory. The number of slashes
is not really clear either. We can open relative filenames (by removing
one of the slashes from the example above), which is perhaps an
unneeded feature. How does this even work with Windows paths?
This issues can probably be corrected later.
The URL unescape code is based on code from m_option.c removed with
a recent commit.
Diffstat (limited to 'core/cpudetect.c')
0 files changed, 0 insertions, 0 deletions