summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-08-07 03:07:13 +0200
committerwm4 <wm4@nowhere>2012-08-07 03:14:53 +0200
commit796599bcc21e0447eedb9770561ea8da08fe8595 (patch)
treef3ca1f290ddbd39344b247b9bfff81f58ace0a4f /etc
parentb27bc9e3c9adca3fad0f35a6f6f0480b69e013f7 (diff)
downloadmpv-796599bcc21e0447eedb9770561ea8da08fe8595.tar.bz2
mpv-796599bcc21e0447eedb9770561ea8da08fe8595.tar.xz
playlist: do not add playlist base path to URLs
The entries of a playlist file usually refer either to local files (in the same directory as the playlist), or absolute paths like URLs. In the first case, you want to add the base path of the playlist file to the files, so that mplayer can find the files. In the second case, the URLs should not be changed. Unfortunately, mp_path_join() recognizes URLs as relative paths, and changes them. E.g. it tried to play /path/to/playlist/http://entry. Add some code to deal with this properly. The added code uses the same approach as m_option_type_custom_url in m_option.c, but because it's so short and trivial, it's perhaps better not to rely on the option parser code. It's also unclear whether mp_path_join() should contain this logic, but maybe it's better to keep the logic of that function clean.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions