summaryrefslogtreecommitdiffstats
path: root/mpvcore/mplayer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-04 16:28:02 +0200
committerwm4 <wm4@nowhere>2013-09-04 16:28:02 +0200
commit191ac00af277f0d798716e2e8d0419656c011b52 (patch)
tree452499a00b3a7d59e102df4c407323e76de04d0c /mpvcore/mplayer.c
parent3bb217d5e9fda241693c7f3c6a4046c845d8d5a8 (diff)
downloadmpv-191ac00af277f0d798716e2e8d0419656c011b52.tar.bz2
mpv-191ac00af277f0d798716e2e8d0419656c011b52.tar.xz
path: better check for mp_is_url()
The previous check just searched for a "://" substring. This was quite bad, because "://" can be a valid part of a path. Later, I added special handling for filenames starting with "." and "/", so that you could reliably pass arbitrary filenames to mpv, no matter how messed up they were. Even though it doesn't really matter in practise anymore, this is still crap, so add a more reliable check instead.
Diffstat (limited to 'mpvcore/mplayer.c')
0 files changed, 0 insertions, 0 deletions