[vlc-commits] audiotrack: rework ConvertFromIEC61937 condition

Thomas Guillem git at videolan.org
Fri Jun 7 11:04:30 CEST 2019


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jun  7 10:57:29 2019 +0200| [7b500e12213554f2d0ebda3e850ae46367de8fb8] | committer: Thomas Guillem

audiotrack: rework ConvertFromIEC61937 condition

i_format = VLC_CODEC_SPDIFB only for API 23, cf. StartPassthrough.

(cherry picked from commit 88aa2e8e9d0bdc5ca708a1bde1c651970e3e82be)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/audio_output/audiotrack.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
index b9a7117fb2..268cbd54f0 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -1791,7 +1791,7 @@ Play( audio_output_t *p_aout, block_t *p_buffer )
     size_t i_buffer_offset = 0;
     aout_sys_t *p_sys = p_aout->sys;
 
-    if( p_sys->b_passthrough && !jfields.AudioFormat.has_ENCODING_IEC61937
+    if( p_sys->b_passthrough && p_sys->fmt.i_format == VLC_CODEC_SPDIFB
      && ConvertFromIEC61937( p_aout, p_buffer ) != 0 )
     {
         block_Release(p_buffer);



More information about the vlc-commits mailing list