[vlc-commits] input: decoder: fix aout_replaygain_changed

Francois Cartegnie git at videolan.org
Mon Mar 29 12:48:40 UTC 2021


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Mar 29 14:28:22 2021 +0200| [bdf8721f7edc878dd74137b3b2b0c27fe9951395] | committer: Francois Cartegnie

input: decoder: fix aout_replaygain_changed

refs #22423

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bdf8721f7edc878dd74137b3b2b0c27fe9951395
---

 src/input/decoder.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 4d9b58e14b..1ac909a083 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -312,8 +312,8 @@ static bool aout_replaygain_changed( const audio_replay_gain_t *a,
     {
         if( a->pb_gain[i] != b->pb_gain[i] ||
             a->pb_peak[i] != b->pb_peak[i] ||
-            a->pb_gain[i] != b->pb_gain[i] ||
-            a->pb_peak[i] != b->pb_peak[i] )
+            (a->pb_gain[i] && a->pf_gain[i] != b->pf_gain[i]) ||
+            (a->pb_peak[i] && a->pf_peak[i] != b->pf_peak[i]) )
             return true;
     }
     return false;



More information about the vlc-commits mailing list