[vlc-commits] demux: ts: fix leaked generated pat/pmt
Francois Cartegnie
git at videolan.org
Tue Nov 14 21:55:57 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov 14 19:24:03 2017 +0100| [b9e26ec1b5810bba830970f145f3aaaf1e1f25e4] | committer: Francois Cartegnie
demux: ts: fix leaked generated pat/pmt
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b9e26ec1b5810bba830970f145f3aaaf1e1f25e4
---
modules/demux/mpeg/ts_hotfixes.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/demux/mpeg/ts_hotfixes.c b/modules/demux/mpeg/ts_hotfixes.c
index 03b61c08dd..50d2c73151 100644
--- a/modules/demux/mpeg/ts_hotfixes.c
+++ b/modules/demux/mpeg/ts_hotfixes.c
@@ -219,6 +219,7 @@ static void BuildPATCallback( void *p_opaque, block_t *p_block )
{
ts_pid_t *pat_pid = (ts_pid_t *) p_opaque;
dvbpsi_packet_push( pat_pid->u.p_pat->handle, p_block->p_buffer );
+ block_Release( p_block );
}
static void BuildPMTCallback( void *p_opaque, block_t *p_block )
@@ -229,7 +230,9 @@ static void BuildPMTCallback( void *p_opaque, block_t *p_block )
{
dvbpsi_packet_push( program_pid->u.p_pmt->handle,
p_block->p_buffer );
- p_block = p_block->p_next;
+ block_t *p_next = p_block->p_next;
+ block_Release( p_block );
+ p_block = p_next;
}
}
More information about the vlc-commits
mailing list