diff options
Diffstat (limited to 'player/loadfile.c')
-rw-r--r-- | player/loadfile.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index f55dd29f34..bb7365c641 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -819,14 +819,7 @@ void autoload_external_files(struct MPContext *mpctx, struct mp_cancel *cancel) return; void *tmp = talloc_new(NULL); - char *base_filename = mpctx->filename; - char *stream_filename = NULL; - if (mpctx->demuxer) { - if (demux_stream_control(mpctx->demuxer, STREAM_CTRL_GET_BASE_FILENAME, - &stream_filename) > 0) - base_filename = talloc_steal(tmp, stream_filename); - } - struct subfn *list = find_external_files(mpctx->global, base_filename, + struct subfn *list = find_external_files(mpctx->global, mpctx->filename, mpctx->opts); talloc_steal(tmp, list); |