pulsesrc: Don't negotiate to less than two segments
authorArun Raghavan <arun@arunraghavan.net>
Thu, 8 Sep 2016 12:00:41 +0000 (17:30 +0530)
committerArun Raghavan <arun@arunraghavan.net>
Sat, 24 Sep 2016 19:50:14 +0000 (01:20 +0530)
commit4833f02e47d5b7fc4284517e92d5976b20188a4a
tree267568e3aab518c2efeebacdd269c99aa79a0ed2
parent10a16a632106a7ffdf7df50df5062497cff6d663
pulsesrc: Don't negotiate to less than two segments

GstAudioRingBuffer doesn't needs us to have at least 2 segments. We make
sure that if our buffer parameters are such that the maxlength is not at
least 2x fragsize, we still request the ringbuffer to keep that much
space so it continues to work.

https://bugzilla.gnome.org/show_bug.cgi?id=770446
ext/pulse/pulsesrc.c