From: Tim-Philipp Müller Date: Tue, 15 May 2018 09:35:09 +0000 (+0100) Subject: Revert "BugFix : Change peak value to normalize audio file with fallback gain" X-Git-Tag: 1.16.2~539 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5d6e6cfdd4030052bc0b8dfc85739614a80a714;p=platform%2Fupstream%2Fgst-plugins-good.git Revert "BugFix : Change peak value to normalize audio file with fallback gain" This reverts commit 36e49fd6f872f0b3f33083107a55fb7f671a47d0. Breaks unit test, someone needs to investigate if it's the patch's fault or if the test needs adjusting/updating. https://bugzilla.gnome.org/show_bug.cgi?id=673970 --- diff --git a/gst/replaygain/gstrgvolume.c b/gst/replaygain/gstrgvolume.c index 1326784..7c4f281 100644 --- a/gst/replaygain/gstrgvolume.c +++ b/gst/replaygain/gstrgvolume.c @@ -645,7 +645,7 @@ gst_rg_volume_determine_gain (GstRgVolume * self, gdouble * target_gain, GST_DEBUG_OBJECT (self, "using fallback gain"); gain = self->fallback_gain; - peak = 0.000001; + peak = 1.0; } else if ((self->album_mode && self->has_album_gain) || (!self->album_mode && !self->has_track_gain)) {