discoverer: Validate timeouts before processing them
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 17 Jan 2011 10:00:08 +0000 (15:30 +0530)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 17 Jan 2011 23:50:45 +0000 (23:50 +0000)
commit65a298fdeee5b9214f83878a6d757e90d45562cb
treea06691abf7bfe0e6fe430a55e028824cef5dd326
parente730ce71dc72df6d380d53c1a65aacb0c0c134b6
discoverer: Validate timeouts before processing them

This avoids a race where the timeout callback is scheduled to run but we
get sufficient information to finish discovery before actually getting
around to executing the callback. See the documentation of
g_source_is_destroyed() for more details.

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