diff options
author | ckath <ckat@teknik.io> | 2019-10-05 23:17:14 +0200 |
---|---|---|
committer | wm4 <1387750+wm4@users.noreply.github.com> | 2019-10-06 21:35:15 +0200 |
commit | 9bc38bd18d23842909f4d7cdb97b32d4d6ac53ba (patch) | |
tree | 78e431472b1713c869a70b0afd17db59e49c74a2 /player | |
parent | 299916bde231028c4dde90439fe29a5493a144a1 (diff) | |
download | mpv-9bc38bd18d23842909f4d7cdb97b32d4d6ac53ba.tar.bz2 mpv-9bc38bd18d23842909f4d7cdb97b32d4d6ac53ba.tar.xz |
player: don't load external files when reading from stdin
Diffstat (limited to 'player')
-rw-r--r-- | player/loadfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index 8ba54d1e6f..58a60faaca 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -821,7 +821,7 @@ void autoload_external_files(struct MPContext *mpctx, struct mp_cancel *cancel) { if (mpctx->opts->sub_auto < 0 && mpctx->opts->audiofile_auto < 0) return; - if (!mpctx->opts->autoload_files) + if (!mpctx->opts->autoload_files || strcmp(mpctx->filename, "-") == 0) return; void *tmp = talloc_new(NULL); |