From 83ab812ea560f5f327ea2df00f8f0292d96b1795 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 4 Jan 2016 09:51:41 +0000 Subject: player: replaygain: avoid unnecessary ignoring It is possible for a file to only have one of the ReplayGain tags we need and not the previous-required REPLAYGAIN_TRACK_GAIN tag. So do not reject the entire series of tags if a file has the one we want. --- lib/dtas/source/file.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/dtas/source/file.rb') diff --git a/lib/dtas/source/file.rb b/lib/dtas/source/file.rb index 33ecc25..00b8f8e 100644 --- a/lib/dtas/source/file.rb +++ b/lib/dtas/source/file.rb @@ -92,9 +92,9 @@ module DTAS::Source::File # :nodoc: rv end - def replaygain - @rg ||= DTAS::ReplayGain.new(comments) || - DTAS::ReplayGain.new(mp3gain_comments) + def replaygain(mode) + @rg ||= DTAS::ReplayGain.new(comments, mode) || + DTAS::ReplayGain.new(mp3gain_comments, mode) end def to_source_cat -- cgit v1.2.3-24-ge0c7