netclientclock: simplify by using g_socket_condition_timed_wait()
authorTim-Philipp Müller <tim@centricular.net>
Fri, 10 Aug 2012 08:19:25 +0000 (09:19 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 10 Aug 2012 08:31:31 +0000 (09:31 +0100)
commitfe082cbe24a4bfd7131921d820df1b7689da7b66
tree6f996eb51a8f5ee2c03c512b4e4efc23a43305cd
parent690a20a54d93302dbdf69276cb18c6112e3bbf74
netclientclock: simplify by using g_socket_condition_timed_wait()

No need to use a custom main context and custom timeout sources,
just use g_socket_condition_timed_wait() instead, which was added
for exactly this case.

Also seems to help with the unit test deadlocking with glib 2.33.x

https://bugzilla.gnome.org/show_bug.cgi?id=681575
libs/gst/net/gstnetclientclock.c