[vlc-commits] demux: ts: memleak due missing psi pkt release
Francois Cartegnie
git at videolan.org
Thu Mar 12 19:48:37 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Mar 12 19:47:16 2015 +0100| [c8549fb5e91ad1090a4b84f840c4968054a6317c] | committer: Francois Cartegnie
demux: ts: memleak due missing psi pkt release
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c8549fb5e91ad1090a4b84f840c4968054a6317c
---
modules/demux/ts.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 8a49cde..f7e59e3 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -1301,10 +1301,12 @@ static int Demux( demux_t *p_demux )
{
case TYPE_PAT:
dvbpsi_packet_push( p_pid->u.p_pat->handle, p_pkt->p_buffer );
+ block_Release( p_pkt );
break;
case TYPE_PMT:
dvbpsi_packet_push( p_pid->u.p_pmt->handle, p_pkt->p_buffer );
+ block_Release( p_pkt );
break;
case TYPE_PES:
@@ -1340,6 +1342,7 @@ static int Demux( demux_t *p_demux )
case TYPE_EIT:
if( p_sys->b_dvb_meta )
dvbpsi_packet_push( p_pid->u.p_psi->handle, p_pkt->p_buffer );
+ block_Release( p_pkt );
break;
default:
More information about the vlc-commits
mailing list