[vlc-commits] decoder: check i_profile similarity for audio

Thomas Guillem git at videolan.org
Thu Dec 21 10:53:09 CET 2017


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec 20 14:02:26 2017 +0100| [245f29a560c38590a3d4c9d7e2558754b2036ba0] | committer: Jean-Baptiste Kempf

decoder: check i_profile similarity for audio

Maybe es_format_IsSimilar should be used.

(cherry picked from commit e0f8be415bbfe216aaec0b756ac2a5ddc7e4286b)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 64ccb9781b..1f8d65c4f9 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -313,7 +313,8 @@ static int aout_update_format( decoder_t *p_dec )
 
     if( p_owner->p_aout &&
        ( !AOUT_FMTS_IDENTICAL(&p_dec->fmt_out.audio, &p_owner->fmt.audio) ||
-         p_dec->fmt_out.i_codec != p_dec->fmt_out.audio.i_format ) )
+         p_dec->fmt_out.i_codec != p_dec->fmt_out.audio.i_format ||
+         p_dec->fmt_out.i_profile != p_owner->fmt.i_profile ) )
     {
         audio_output_t *p_aout = p_owner->p_aout;
 



More information about the vlc-commits mailing list