jack: Fix pipeline hang when jack changes sample rate or buffer size
authorThomas Scheuermann <Thomas.Scheuermann@barco.com>
Fri, 9 Sep 2016 13:36:12 +0000 (15:36 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 13 Sep 2016 12:19:47 +0000 (14:19 +0200)
commit1215849e69114516c93144ca590db2d751eebce7
treec7938527d21366eca7e2278082d190ad24530c94
parentdba90631bc853ef710f15ffb03c8c2d94afbcaaf
jack: Fix pipeline hang when jack changes sample rate or buffer size

If jackd changes the buffer size or sample rate, jackaudiosink hangs
and can't be stopped. This also happens if jack is configured as slave
and a gstreamer pipeline is started on the slave machine while the jack
master isn't running yet. If the the jack master is started it changes
the buffer size / sample rate and jackaudiosink can't be stopped.

This fix calls jack_shutdown_cb when jack_sample_rate_cb or
jack_buffer_size_cb is called.

https://bugzilla.gnome.org/show_bug.cgi?id=771272
ext/jack/gstjackaudioclient.c