channel_mixer: headphone: prepare format on success
authorThomas Guillem <thomas@gllm.fr>
Wed, 12 Jul 2017 17:05:27 +0000 (19:05 +0200)
committerThomas Guillem <thomas@gllm.fr>
Wed, 12 Jul 2017 17:06:14 +0000 (19:06 +0200)
This fixes a i_bytes_per_frame/i_frame_length inconsistency when chaining more
than one audio filters.

modules/audio_filter/channel_mixer/headphone.c

index 80e4ef3..946689c 100644 (file)
@@ -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;
 }