discoverer: Keep a ref for the async timeout callback
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 7 Feb 2011 07:34:55 +0000 (13:04 +0530)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Tue, 22 Feb 2011 12:49:12 +0000 (13:49 +0100)
commit8d2b69384a2674873975b5414f7bb3635ff2014b
tree2e23eff42774fd58f921acd980d8449ed8b20073
parent40c4fe8fbe23cc3e3293c737969fc274dfb6c4f1
discoverer: Keep a ref for the async timeout callback

This makes sure we maintain a ref on the discoverer object while the
async timeout callback is alive to prevent a potential crash if the
object is freed while the callback is pending.

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