]> git.sesse.net Git - vlc/commitdiff
Use block_Release in bandlimited resampler.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 20 Sep 2008 22:01:41 +0000 (00:01 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 20 Sep 2008 22:21:40 +0000 (00:21 +0200)
modules/audio_filter/resampler/bandlimited.c

index 24c65cf804525bc6e7b251527c218c2d3701893a..3eddef55bf45f0949f66e472a0a5d25f6ae0dc47 100644 (file)
@@ -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;