[vlc-commits] commit: Should fix #4224. ( Rémi Duraffort )

git at videolan.org git at videolan.org
Tue Nov 9 18:27:31 CET 2010


vlc/vlc-1.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Nov  8 19:32:32 2010 +0100| [75e4e078e12bde463610b8cdbe143c41bceb9b37] | committer: Rémi Duraffort 

Should fix #4224.
(cherry picked from commit b15fa6b2bd176914adb43c46d621ba1ca5982a62)

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=75e4e078e12bde463610b8cdbe143c41bceb9b37
---

 modules/stream_out/transcode/audio.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/stream_out/transcode/audio.c b/modules/stream_out/transcode/audio.c
index 9fe7b85..736f10c 100644
--- a/modules/stream_out/transcode/audio.c
+++ b/modules/stream_out/transcode/audio.c
@@ -283,6 +283,10 @@ int transcode_audio_new( sout_stream_t *p_stream,
         es_format_t fmt_fl32 = fmt_last;
         fmt_fl32.i_codec =
         fmt_fl32.audio.i_format = VLC_CODEC_FL32;
+        id->p_uf_chain = filter_chain_New( p_stream, "audio filter", false,
+                                           transcode_audio_filter_allocation_init, NULL, NULL );
+        filter_chain_Reset( id->p_uf_chain, &fmt_last, &fmt_fl32 );
+
         if( transcode_audio_filter_chain_build( p_stream, id->p_uf_chain,
                                                 &fmt_fl32, &fmt_last ) )
         {
@@ -291,9 +295,6 @@ int transcode_audio_new( sout_stream_t *p_stream,
         }
         fmt_last = fmt_fl32;
 
-        id->p_uf_chain = filter_chain_New( p_stream, "audio filter", false,
-                                           transcode_audio_filter_allocation_init, NULL, NULL );
-        filter_chain_Reset( id->p_uf_chain, &fmt_last, &fmt_fl32 );
         if( filter_chain_AppendFromString( id->p_uf_chain, p_sys->psz_af ) > 0 )
             fmt_last = *filter_chain_GetFmtOut( id->p_uf_chain );
     }



More information about the vlc-commits mailing list