audioaggregator: Sync pad values before aggregating
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 19 May 2015 10:38:08 +0000 (16:08 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 22 Jul 2015 18:50:38 +0000 (19:50 +0100)
commit74d7944cbb29c4f84404cb582669497dbde605ca
tree0f3b1c6620595ba7521cd7e86260baff0a47030e
parenta1cdede9404162162322cc3d77f03d4828f8da2d
audioaggregator: Sync pad values before aggregating

We need to sync the pad values before taking the aggregator and pad locks
otherwise the element will just deadlock if there's any property changes
scheduled using GstController since that involves taking the aggregator and pad
locks.

Also add a test for this.

https://bugzilla.gnome.org/show_bug.cgi?id=749574
gst/audiomixer/gstaudioaggregator.c
tests/check/elements/audiomixer.c