diff options
author | wm4 <wm4@nowhere> | 2013-10-20 21:33:27 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-10-20 21:33:27 +0200 |
commit | da6093a5a109e2949bb27c63aae93bf64bcdefad (patch) | |
tree | a2a0d1721ddcf9f00da54af8cc8ab240ad686d0e /mpvcore | |
parent | 3b156caf784bb404682bb20415f8aaabc9921256 (diff) | |
download | mpv-da6093a5a109e2949bb27c63aae93bf64bcdefad.tar.bz2 mpv-da6093a5a109e2949bb27c63aae93bf64bcdefad.tar.xz |
mplayer: don't call libquvi for local files
This is obviously not needed, and just creates potential for bad
breakages (e.g. what happens if libquvi tries to open a normal filename
as http URL?).
Note that for simplicity, we still pass file:// URIs to quvi, and we
don't exclude other protocol prefixes either. In general, we don't know
what protocols quvi might support, so we don't try to second-guess it.
(Even though in practice, it's probably only "http" and "https".)
Diffstat (limited to 'mpvcore')
-rw-r--r-- | mpvcore/mplayer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mpvcore/mplayer.c b/mpvcore/mplayer.c index 9600b82a86..5b35821b31 100644 --- a/mpvcore/mplayer.c +++ b/mpvcore/mplayer.c @@ -4242,6 +4242,8 @@ static void add_subtitle_fonts_from_sources(struct MPContext *mpctx) static struct mp_resolve_result *resolve_url(const char *filename, struct MPOpts *opts) { + if (!mp_is_url(bstr0(filename))) + return NULL; #if defined(CONFIG_LIBQUVI) || defined(CONFIG_LIBQUVI9) return mp_resolve_quvi(filename, opts); #else |