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)
commitad8cb458baf875c4bf77c8831fc7aeb926c41d82
tree02f4ca7f9ef55613688c30905bbec5b7cf8c800d
parentd92375eaaeff98e267c37c0e9c260f276f2c8289
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/Makefile.am
tests/check/elements/audiomixer.c