summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-05 16:45:41 +0200
committerwm4 <wm4@nowhere>2014-07-05 17:07:14 +0200
commit58880c00eeca254a5391dd61a920081bb16bc2c1 (patch)
tree56f9bb23059b96c0d7e0eaf58b7ae44f36b0af84 /player
parenta97256c1d58fae714ae94301ab09044081d08c8e (diff)
downloadmpv-58880c00eeca254a5391dd61a920081bb16bc2c1.tar.bz2
mpv-58880c00eeca254a5391dd61a920081bb16bc2c1.tar.xz
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.
Diffstat (limited to 'player')
-rw-r--r--player/audio.c2
1 files changed, 1 insertions, 1 deletions
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;
}