mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
mpegtsparse: Free the PMT before setting a new one
This commit is contained in:
parent
6233d1c950
commit
e3f08983aa
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue