summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pölsterl <sebp@k-d-w.org>2010-06-30 17:20:13 (GMT)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-06-30 17:27:16 (GMT)
commit61a885613316ce7657c36a6cd215b43f9dc67b79 (patch)
tree19f4bdb4813de565661c1d9f9872c62d6624782a
parent90e31a0178fa279838c4db64ebaa80c897f6cbb9 (diff)
mpegtsparse: don't free PAT structure which may still be needed later
This is a problem if you tune to a channel which uses pid X and later tune to another channel where X is used for another table (e.g. PMT). The code that does that was actually already there but never used because the pat structure was freed before. The commit that introduced those lines intended to fix a memory leak, but we clean things up elsewhere. Fixes #622725.
-rw-r--r--gst/mpegdemux/mpegtsparse.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gst/mpegdemux/mpegtsparse.c b/gst/mpegdemux/mpegtsparse.c
index e430ec3..7dc68c5 100644
--- a/gst/mpegdemux/mpegtsparse.c
+++ b/gst/mpegdemux/mpegtsparse.c
@@ -267,9 +267,6 @@ mpegts_parse_reset (MpegTSParse * parse)
/* PAT */
g_hash_table_insert (parse->psi_pids,
GINT_TO_POINTER (0), GINT_TO_POINTER (1));
- if (parse->pat != NULL)
- gst_structure_free (parse->pat);
- parse->pat = NULL;
/* pmt pids will be added and removed dynamically */
}