From e3f08983aadac760320f50da1d82769645689470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 21 Jul 2009 13:17:06 +0200 Subject: [PATCH] mpegtsparse: Free the PMT before setting a new one --- gst/mpegdemux/mpegtsparse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/mpegdemux/mpegtsparse.c b/gst/mpegdemux/mpegtsparse.c index f947cc5018..90a8ea3b1e 100644 --- a/gst/mpegdemux/mpegtsparse.c +++ b/gst/mpegdemux/mpegtsparse.c @@ -1006,6 +1006,9 @@ mpegts_parse_apply_pmt (MpegTSParse * parse, if (program) { /* deactivate old pmt */ mpegts_parse_deactivate_pmt (parse, program); + if (program->pmt_info) + gst_structure_free (program->pmt_info); + program->pmt_info = NULL; } else { /* no PAT?? */ g_hash_table_insert (parse->psi_pids,