[vlc-commits] Use block_ChainRelease

Rafaël Carré git at videolan.org
Sat Feb 15 18:24:32 CET 2014


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Feb 15 18:24:20 2014 +0100| [578b83be4dae986f1dabf2d8ba24d20d6d97da0b] | committer: Rafaël Carré

Use block_ChainRelease

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=578b83be4dae986f1dabf2d8ba24d20d6d97da0b
---

 src/input/decoder.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index da889a6..6ec1ad1 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1530,12 +1530,7 @@ static void DecoderProcessSout( decoder_t *p_dec, block_t *p_block )
                          (char *)&p_owner->sout.i_codec );
                 p_dec->b_error = true;
 
-                while( p_sout_block )
-                {
-                    block_t *p_next = p_sout_block->p_next;
-                    block_Release( p_sout_block );
-                    p_sout_block = p_next;
-                }
+                block_ChainRelease(p_sout_block);
                 break;
             }
         }



More information about the vlc-commits mailing list