[vlc-commits] audiotrack: also check device capabilities for API 23
Thomas Guillem
git at videolan.org
Fri Jun 7 11:04:31 CEST 2019
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jun 7 10:58:41 2019 +0200| [e7850b76a547f0988c86b6d628ec9e2c67203048] | committer: Thomas Guillem
audiotrack: also check device capabilities for API 23
(cherry picked from commit dca2bfceb88b8628abcfb5ffc7785dcd9fd5f369)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=e7850b76a547f0988c86b6d628ec9e2c67203048
---
modules/audio_output/audiotrack.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
index 268cbd54f0..4608642043 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -962,11 +962,12 @@ StartPassthrough( JNIEnv *env, audio_output_t *p_aout )
aout_sys_t *p_sys = p_aout->sys;
int i_at_format;
+ bool b_dtshd;
+ if( !AudioTrack_HasEncoding( p_aout, p_sys->fmt.i_format, &b_dtshd ) )
+ return VLC_EGENERIC;
+
if( jfields.AudioFormat.has_ENCODING_IEC61937 )
{
- bool b_dtshd;
- if( !AudioTrack_HasEncoding( p_aout, p_sys->fmt.i_format, &b_dtshd ) )
- return VLC_EGENERIC;
i_at_format = jfields.AudioFormat.ENCODING_IEC61937;
switch( p_sys->fmt.i_format )
{
More information about the vlc-commits
mailing list