mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
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:
parent
90e31a0178
commit
61a8856133
1 changed files with 0 additions and 3 deletions
|
@ -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 */
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue