From 58880c00eeca254a5391dd61a920081bb16bc2c1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 5 Jul 2014 16:45:41 +0200 Subject: demux: make replaygain per-track It's unlikely that files with multiple audio tracks and with replaygain actually happen, but this change might help avoid minor corner cases with later changes. --- player/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/audio.c') diff --git a/player/audio.c b/player/audio.c index e0c6ca9a0c..a63b847a75 100644 --- a/player/audio.c +++ b/player/audio.c @@ -120,7 +120,7 @@ void reinit_audio_chain(struct MPContext *mpctx) mpctx->d_audio->opts = opts; mpctx->d_audio->header = sh; mpctx->d_audio->metadata = mpctx->demuxer->metadata; - mpctx->d_audio->replaygain_data = mpctx->demuxer->replaygain_data; + mpctx->d_audio->replaygain_data = sh->audio->replaygain_data; if (!audio_init_best_codec(mpctx->d_audio, opts->audio_decoders)) goto init_error; } -- cgit v1.2.3