mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 08:12:17 +00:00
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.
This commit is contained in:
parent
1c44db2992
commit
7bb1afb8ea
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user