watchdog: Only create a new GSource if we have a main context
authorGöran Jönsson <goranjn@axis.com>
Mon, 23 Jun 2014 09:53:11 +0000 (11:53 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 1 Jul 2014 17:41:36 +0000 (19:41 +0200)
commite050541f11711d2ff8edf4b80213acffbdba7a07
tree48975f562ad11a035817035472b56aa83dc5edfd
parent2a7c05592d015241cb0f076a82da36ccdbbc6c2f
watchdog: Only create a new GSource if we have a main context

We can still get OOB events while stopping the watchdog element, and while
stopping it we destroy the main context.

Also let the GSource own a reference to the element for additional safety.

https://bugzilla.gnome.org/show_bug.cgi?id=732554
gst/debugutils/gstwatchdog.c