summaryrefslogtreecommitdiffstats
path: root/demux/demux_lavf.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-27 22:42:53 +0200
committerwm4 <wm4@nowhere>2014-08-27 23:12:49 +0200
commit7bb1afb8eaa7482b43f9ac31b1b93b1bb55789e3 (patch)
treea69532b31154bd00e2e04de09d25e99e13ef6818 /demux/demux_lavf.c
parent1c44db2992901a5ef9038e0e55aaa0b15309b727 (diff)
downloadmpv-7bb1afb8eaa7482b43f9ac31b1b93b1bb55789e3.tar.bz2
mpv-7bb1afb8eaa7482b43f9ac31b1b93b1bb55789e3.tar.xz
demux_lavf: don't reject av:// if cache is enabled
Enabling the cache doesn't make much in this situation, but there's also no reason not to reject it.
Diffstat (limited to 'demux/demux_lavf.c')
-rw-r--r--demux/demux_lavf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c
index 16a06829d4..79565993a4 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -234,7 +234,7 @@ static int lavf_check_file(demuxer_t *demuxer, enum demux_check check)
priv->filename = remove_prefix(priv->filename, prefixes);
char *avdevice_format = NULL;
- if (s->type == STREAMTYPE_AVDEVICE) {
+ if (s->uncached_type == STREAMTYPE_AVDEVICE) {
// always require filename in the form "format:filename"
char *sep = strchr(priv->filename, ':');
if (!sep) {