mpegtsparse: don't free PAT structure which may still be needed later
authorSebastian Pölsterl <sebp@k-d-w.org>
Wed, 30 Jun 2010 17:20:13 +0000 (18:20 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 30 Jun 2010 17:27:16 +0000 (18:27 +0100)
commit61a885613316ce7657c36a6cd215b43f9dc67b79
tree19f4bdb4813de565661c1d9f9872c62d6624782a
parent90e31a0178fa279838c4db64ebaa80c897f6cbb9
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.
gst/mpegdemux/mpegtsparse.c