diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mpegtsparse/mpegtsparse.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gst/mpegtsparse/mpegtsparse.c b/gst/mpegtsparse/mpegtsparse.c index 3ac66c7a..3aa49db5 100644 --- a/gst/mpegtsparse/mpegtsparse.c +++ b/gst/mpegtsparse/mpegtsparse.c @@ -248,8 +248,9 @@ mpegts_parse_reset (MpegTSParse * parse) /* PAT */ g_hash_table_insert (parse->psi_pids, GINT_TO_POINTER (0), GINT_TO_POINTER (1)); - + parse->pat = NULL; /* pmt pids will be added and removed dynamically */ + } static void @@ -290,8 +291,10 @@ mpegts_parse_finalize (GObject * object) MpegTSParse *parse = GST_MPEGTS_PARSE (object); g_free (parse->program_numbers); - if (parse->pat) + if (parse->pat) { gst_structure_free (parse->pat); + parse->pat = NULL; + } g_hash_table_destroy (parse->programs); g_hash_table_destroy (parse->psi_pids); |