]> git.sesse.net Git - vlc/blobdiff - modules/audio_filter/channel_mixer/simple.c
Use block_Release instead of pf_release directly.
[vlc] / modules / audio_filter / channel_mixer / simple.c
index f95ce67f46b0faff2cc9f718563945ba846c370d..7fa42580da2a0bd97401a69bebed518b54f8491b 100644 (file)
@@ -233,7 +233,8 @@ static block_t *Filter( 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;
     }
 
@@ -245,7 +246,7 @@ static block_t *Filter( 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;
     }
 
@@ -269,7 +270,7 @@ static block_t *Filter( 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;