[vlc-commits] packetizer: flac: unset pp_block on grab

Francois Cartegnie git at videolan.org
Thu Feb 9 23:05:27 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Feb  9 19:05:16 2017 +0100| [2e5630281a703b6819be6457aa610f1c93e36eeb] | committer: Francois Cartegnie

packetizer: flac: unset pp_block on grab

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

 modules/packetizer/flac.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/packetizer/flac.c b/modules/packetizer/flac.c
index 8ebb360..6f8a3c3 100644
--- a/modules/packetizer/flac.c
+++ b/modules/packetizer/flac.c
@@ -566,12 +566,12 @@ static block_t *Packetize(decoder_t *p_dec, block_t **pp_block)
     if ( pp_block && *pp_block)
     {
         in = *pp_block;
-
+        *pp_block = NULL;
         if (in->i_flags&(BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED)) {
             Flush(p_dec);
             p_sys->i_next_block_flags |= BLOCK_FLAG_DISCONTINUITY;
             if (in->i_flags&BLOCK_FLAG_CORRUPTED) {
-                block_Release(*pp_block);
+                block_Release(in);
                 return NULL;
             }
         }



More information about the vlc-commits mailing list