jack: when stopping playback, do one more cycle to flush the port. Fixes #582167
authorStefan Kost <ensonic@users.sf.net>
Mon, 11 May 2009 13:12:54 +0000 (16:12 +0300)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 2 Jan 2011 14:30:07 +0000 (14:30 +0000)
commit8a002a11219a9bf4a12f5c6450134fdb1e0ff0f4
tree1b9842822a86a7e625a525f3b1a14c0302786d22
parent7dde7eca2896e3049747150ed8f869f51fe5e43b
jack: when stopping playback, do one more cycle to flush the port. Fixes #582167

The gst_jack_audio_client_set_active() flags the port as deactivating and uses
a GCond to wait until the jack_process_cb() has run once more and cleared the
flag. This way the client zero's the buffer. This happens if one manyally go
to PAUSED and then to READY, while leting the mainloop run inbetween.
ext/jack/gstjackaudioclient.c
ext/jack/gstjackaudiosink.c