[vlc-devel] commit: Use block_Release in bandlimited resampler. (Laurent Aimar )
git version control
git at videolan.org
Sun Sep 21 00:24:46 CEST 2008
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Sep 21 00:01:41 2008 +0200| [413fc5d869df033b5c06c6ad360cf7503fd32034] | committer: Laurent Aimar
Use block_Release in bandlimited resampler.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=413fc5d869df033b5c06c6ad360cf7503fd32034
---
modules/audio_filter/resampler/bandlimited.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/audio_filter/resampler/bandlimited.c b/modules/audio_filter/resampler/bandlimited.c
index 24c65cf..3eddef5 100644
--- a/modules/audio_filter/resampler/bandlimited.c
+++ b/modules/audio_filter/resampler/bandlimited.c
@@ -562,7 +562,8 @@ static block_t *Resample( filter_t *p_filter, block_t *p_block )
if( !p_block || !p_block->i_samples )
{
- if( p_block ) p_block->pf_release( p_block );
+ if( p_block )
+ block_Release( p_block );
return NULL;
}
@@ -576,7 +577,7 @@ static block_t *Resample( filter_t *p_filter, block_t *p_block )
if( !p_out )
{
msg_Warn( p_filter, "can't get output buffer" );
- p_block->pf_release( p_block );
+ block_Release( p_block );
return NULL;
}
@@ -604,7 +605,7 @@ static block_t *Resample( filter_t *p_filter, block_t *p_block )
DoWork( (aout_instance_t *)p_filter, &aout_filter, &in_buf, &out_buf );
- p_block->pf_release( p_block );
+ block_Release( p_block );
p_out->i_buffer = out_buf.i_nb_bytes;
p_out->i_samples = out_buf.i_nb_samples;
More information about the vlc-devel
mailing list