discoverer: fix GstToc leak when parsing toc messages
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 31 Mar 2015 11:26:21 +0000 (13:26 +0200)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 17 Apr 2015 13:49:01 +0000 (14:49 +0100)
commitd7d8fc5652ba8f99a90b8a8e17526f45d13e3f21
tree5626775d6b703deb6e50250b699f02489a9a501a
parentebf8ea4ed9408006a56f85ec31d0f72e645d7c75
discoverer: fix GstToc leak when parsing toc messages

gst_message_parse_toc() returns a reffed GstToc which is owned by the
GstDiscovererInfo. But we have to make sure we unref its previous value before
setting the new one.

https://bugzilla.gnome.org/show_bug.cgi?id=747103
gst-libs/gst/pbutils/gstdiscoverer.c