[vlc-devel] [PATCH 6/9] decoder: check i_profile similarity for audio

Thomas Guillem thomas at gllm.fr
Wed Dec 20 14:12:42 CET 2017


Maybe es_format_IsSimilar should be used.
---
 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 da4f66b460..081d81f807 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -312,7 +312,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;
 
-- 
2.11.0



More information about the vlc-devel mailing list