tsdemux: Fix pad leak when the pad is never exposed
authorEtienne Peron <etienne.peron@parrot.com>
Wed, 10 Jun 2015 12:18:00 +0000 (14:18 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 11 Nov 2015 14:32:30 +0000 (15:32 +0100)
commita336181ef5bba20b832fb3db6493ac737beb4bf2
tree3e199c1fc0e051c0920b97b166802f5a3cfa681e
parentc3b28700d94b30f3ea06d799fcc55396aaf72cb5
tsdemux: Fix pad leak when the pad is never exposed

If tsdemux never receives data for a stream, the corresponding pad will never
be added and stream->active will remain FALSE. When the stream is removed, the
pad will not be unreffed and will be leaked.

https://bugzilla.gnome.org/show_bug.cgi?id=757873
gst/mpegtsdemux/tsdemux.c