[vlc-commits] channel_mixer: headphone: prepare format on success

Thomas Guillem git at videolan.org
Wed Jul 12 19:11:03 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jul 12 19:05:27 2017 +0200| [8e10fb5327764f2d581533f15635df2b28ae8b38] | committer: Thomas Guillem

channel_mixer: headphone: prepare format on success

This fixes a i_bytes_per_frame/i_frame_length inconsistency when chaining more
than one audio filters.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8e10fb5327764f2d581533f15635df2b28ae8b38
---

 modules/audio_filter/channel_mixer/headphone.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/audio_filter/channel_mixer/headphone.c b/modules/audio_filter/channel_mixer/headphone.c
index 80e4ef3c5b..946689cdc7 100644
--- a/modules/audio_filter/channel_mixer/headphone.c
+++ b/modules/audio_filter/channel_mixer/headphone.c
@@ -482,6 +482,9 @@ static int OpenFilter( vlc_object_t *p_this )
     }
     p_filter->pf_audio_filter = Convert;
 
+    aout_FormatPrepare(&p_filter->fmt_in.audio);
+    aout_FormatPrepare(&p_filter->fmt_out.audio);
+
     return VLC_SUCCESS;
 }
 



More information about the vlc-commits mailing list