]> git.sesse.net Git - vlc/blobdiff - modules/audio_filter/converter/dtstofloat32.c
Use block_Release instead of pf_release directly.
[vlc] / modules / audio_filter / converter / dtstofloat32.c
index cc103e65b506171d470718b6e82f93cc50fccbd8..074c49c36bea1bb4a4e13cdb2a8f0186781caf73 100644 (file)
@@ -431,7 +431,8 @@ static block_t *Convert( 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;
     }
 
@@ -443,7 +444,7 @@ static block_t *Convert( 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;
     }
 
@@ -470,7 +471,7 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
     p_out->i_buffer = out_buf.i_nb_bytes;
     p_out->i_samples = out_buf.i_nb_samples;
 
-    p_block->pf_release( p_block );
+    block_Release( p_block );
 
     return p_out;
 }