From c048b5db02333ad198ac1bd9ca793b31efdaff1f Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 18 Jun 2014 01:40:20 +0200 Subject: options: allow adding multiple files with --audio-file At least 1 person expected that this works this way. --- player/loadfile.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'player/loadfile.c') diff --git a/player/loadfile.c b/player/loadfile.c index 43cb127e5a..bae8f74fe9 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -794,8 +794,10 @@ err_out: static void open_audiofiles_from_options(struct MPContext *mpctx) { struct MPOpts *opts = mpctx->opts; - open_external_file(mpctx, opts->audio_stream, opts->audio_demuxer_name, - STREAM_AUDIO); + for (int n = 0; opts->audio_files && opts->audio_files[n]; n++) { + open_external_file(mpctx, opts->audio_files[n], opts->audio_demuxer_name, + STREAM_AUDIO); + } } struct track *mp_add_subtitles(struct MPContext *mpctx, char *filename) -- cgit v1.2.3