aggregator: Replace GMainContext with GAsyncQueue (v2)
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Wed, 17 Sep 2014 14:48:02 +0000 (16:48 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:26 +0000 (15:10 +0000)
commite8c34afd5ff6d224f5198ad53c16f116e36aa6df
tree204285ffc12c286596ff1f52ac509470d3169978
parentaaff6b50f88d343f09e96d73b296f89446cb19b3
aggregator: Replace GMainContext with GAsyncQueue (v2)

The previous implementation kept accumulating GSources,
slowing down the iteration and leaking memory.

Instead of trying to fix the main context flushing, replace
it with a GAsyncQueue which is simple to flush and has
less overhead.

https://bugzilla.gnome.org/show_bug.cgi?id=736782
libs/gst/base/gstaggregator.c