[vlc-commits] [Git][videolan/vlc][3.0.x] audiotrack: don't use DynamicsProcessing with passthrough
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Wed Jul 21 10:18:38 UTC 2021
Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC
Commits:
15be8514 by Thomas Guillem at 2021-07-21T10:01:14+00:00
audiotrack: don't use DynamicsProcessing with passthrough
Fixes #25921
(cherry picked from commit e41b435304aaaf84b2d6fc23f629614b7d115d47)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
- - - - -
1 changed file:
- modules/audio_output/audiotrack.c
Changes:
=====================================
modules/audio_output/audiotrack.c
=====================================
@@ -869,7 +869,7 @@ AudioTrack_New( JNIEnv *env, audio_output_t *p_aout, unsigned int i_rate,
if( !p_sys->p_audiotrack )
return -1;
- if( jfields.DynamicsProcessing.clazz )
+ if( jfields.DynamicsProcessing.clazz && !p_sys->b_passthrough )
{
if (session_id == 0 )
session_id = JNI_AT_CALL_INT( getAudioSessionId );
@@ -1083,15 +1083,16 @@ StartPassthrough( JNIEnv *env, audio_output_t *p_aout )
p_sys->fmt.i_format = VLC_CODEC_SPDIFB;
}
+ p_sys->b_passthrough = true;
int i_ret = AudioTrack_Create( env, p_aout, p_sys->fmt.i_rate, i_at_format,
p_sys->fmt.i_physical_channels );
if( i_ret != VLC_SUCCESS )
+ {
+ p_sys->b_passthrough = false;
msg_Warn( p_aout, "SPDIF configuration failed" );
+ }
else
- {
- p_sys->b_passthrough = true;
p_sys->i_chans_to_reorder = 0;
- }
return i_ret;
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/15be8514b1475012853106c242dd7eaf80d7e0f1
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/15be8514b1475012853106c242dd7eaf80d7e0f1
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list