[vlc-commits] audiotrack: rework ConvertFromIEC61937 condition
Thomas Guillem
git at videolan.org
Fri Jun 7 11:01:15 CEST 2019
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jun 7 10:57:29 2019 +0200| [88aa2e8e9d0bdc5ca708a1bde1c651970e3e82be] | committer: Thomas Guillem
audiotrack: rework ConvertFromIEC61937 condition
i_format = VLC_CODEC_SPDIFB only for API 23, cf. StartPassthrough.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=88aa2e8e9d0bdc5ca708a1bde1c651970e3e82be
---
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 6e70c0e98e..3c776ecddc 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -1940,7 +1940,7 @@ Play( audio_output_t *p_aout, block_t *p_buffer, vlc_tick_t i_date )
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