aggregator: Don't count the number of times we need to wake up but instead check...
authorSebastian Dröge <sebastian@centricular.com>
Mon, 22 Dec 2014 14:00:36 +0000 (15:00 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:26 +0000 (15:10 +0000)
commita20863a7eccd9b1e56402968856eeb8f88101062
tree9f70921067a50030d8b7714c187c5a7f814f68d3
parentb1dcc7efb04155657e99439ab18b879868639f54
aggregator: Don't count the number of times we need to wake up but instead check all conditions for waiting again

This simplifies the code and also makes sure that we don't forget to check all
conditions for waiting.

Also fix a potential deadlock caused by not checking if we're actually still
running before starting to wait.
libs/gst/base/gstaggregator.c