[vlc-commits] commit: Should fix #4224. ( Rémi Duraffort )
git at videolan.org
git at videolan.org
Mon Nov 8 23:21:05 CET 2010
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Nov 8 19:32:32 2010 +0100| [b15fa6b2bd176914adb43c46d621ba1ca5982a62] | committer: Rémi Duraffort
Should fix #4224.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b15fa6b2bd176914adb43c46d621ba1ca5982a62
---
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 0141dda..f056bb6 100644
--- a/modules/stream_out/transcode/audio.c
+++ b/modules/stream_out/transcode/audio.c
@@ -284,6 +284,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 ) )
{
@@ -292,9 +296,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