[vlc-devel] [RFC PATH 2/3] mpg123: prepare audio format

Thomas Guillem thomas at gllm.fr
Wed Sep 21 16:58:55 CEST 2016


---
 modules/codec/mpg123.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/mpg123.c b/modules/codec/mpg123.c
index 9480bc6..1bb587e 100644
--- a/modules/codec/mpg123.c
+++ b/modules/codec/mpg123.c
@@ -174,6 +174,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
         date_Set( &p_sys->end_date, p_block->i_pts );
     }
 
+    aout_FormatPrepare( &p_dec->fmt_out.audio );
     /* Request a new audio buffer */
     block_t *p_out = decoder_NewAudioBuffer( p_dec, p_block->i_nb_samples );
     if( unlikely( !p_out ) )
-- 
2.9.3



More information about the vlc-devel mailing list