[vlc-commits] [Git][videolan/vlc][master] audiotrack: don't use DynamicsProcessing with passthrough

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Tue Jul 20 08:07:54 UTC 2021



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
e41b4353 by Thomas Guillem at 2021-07-20T07:56:33+00:00
audiotrack: don't use DynamicsProcessing with passthrough

Fixes #25921

- - - - -


1 changed file:

- modules/audio_output/audiotrack.c


Changes:

=====================================
modules/audio_output/audiotrack.c
=====================================
@@ -1042,7 +1042,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 );
@@ -1256,15 +1256,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/e41b435304aaaf84b2d6fc23f629614b7d115d47

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e41b435304aaaf84b2d6fc23f629614b7d115d47
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list