[vlc-devel] commit: Trivial code factorization ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Aug 23 21:00:23 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug 23 21:56:06 2009 +0300| [47d107ca2b4a934c57484cef3987c30c7b6755b2] | committer: Rémi Denis-Courmont
Trivial code factorization
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=47d107ca2b4a934c57484cef3987c30c7b6755b2
---
src/audio_output/input.c | 18 +++++++-----------
1 files changed, 7 insertions(+), 11 deletions(-)
diff --git a/src/audio_output/input.c b/src/audio_output/input.c
index 4a5b4c1..9c69eee 100644
--- a/src/audio_output/input.c
+++ b/src/audio_output/input.c
@@ -300,26 +300,22 @@ int aout_InputNew( aout_instance_t * p_aout, aout_input_t * p_input, const aout_
p_filter->p_owner->p_aout = p_aout;
p_filter->p_owner->p_input = p_input;
+ /* request format */
+ memcpy( &p_filter->input, &chain_output_format,
+ sizeof(audio_sample_format_t) );
+ memcpy( &p_filter->output, &chain_output_format,
+ sizeof(audio_sample_format_t) );
+
+
/* try to find the requested filter */
if( i_visual == 2 ) /* this can only be a visualization module */
{
- /* request format */
- memcpy( &p_filter->input, &chain_output_format,
- sizeof(audio_sample_format_t) );
- memcpy( &p_filter->output, &chain_output_format,
- sizeof(audio_sample_format_t) );
p_filter->p_module = module_need( p_filter, "visualization",
psz_parser, true );
}
else /* this can be a audio filter module as well as a visualization module */
{
- /* request format */
- memcpy( &p_filter->input, &chain_input_format,
- sizeof(audio_sample_format_t) );
- memcpy( &p_filter->output, &chain_output_format,
- sizeof(audio_sample_format_t) );
-
p_filter->p_module = module_need( p_filter, "audio filter",
psz_parser, true );
More information about the vlc-devel
mailing list