player: don't load external files when reading from stdin

This commit is contained in:
ckath 2019-10-05 23:17:14 +02:00 committed by wm4
parent 299916bde2
commit 9bc38bd18d
1 changed files with 1 additions and 1 deletions

View File

@ -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);