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.
This commit is contained in:
Sebastian Pölsterl 2010-06-30 18:20:13 +01:00 committed by Tim-Philipp Müller
parent 90e31a0178
commit 61a8856133

View file

@ -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 */
}