From 9bc38bd18d23842909f4d7cdb97b32d4d6ac53ba Mon Sep 17 00:00:00 2001 From: ckath Date: Sat, 5 Oct 2019 23:17:14 +0200 Subject: player: don't load external files when reading from stdin --- player/loadfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3