gstreamer/sys
Guillaume Desmottes 47ca2ce499 v4l2: increase by one the number of allocated buffers
Increasing this number fix a buffer starvation problem I'm hitting
with a "v4l2src ! kmssink" pipeline.

kmssink requests 2 buffer as it keeps a reference on the last rendered
one. So we were allocating 3 buffers for the pipeline.
Once the first 2 buffers have been pushed we ended up with:
- one buffer queued in v4l2
- one being pushed
- one kept as last rendered

If this 3rd buffer is released after that v4l2 used the first one to
capture we end up with a buffer starvation problem as no buffer is currently
queued in v4l2 for capture.

Fixing this by adding one extra buffer to the pipeline so when one
buffer is being pushed downstream the other can already be queued to
capture the next frame.

We were already adding 3 buffers if downstream didn't reply to the
allocation query. I reduced this number to 2 to compensate the extra
buffer which is now always added.

https://bugzilla.gnome.org/show_bug.cgi?id=783049
2017-06-29 15:13:18 -04:00
..
directsound Remove plugin specific static build option 2017-05-16 14:41:19 -04:00
oss meson: build oss plugin 2017-06-23 19:34:16 +01:00
oss4 meson: build oss4 plugin 2017-06-23 19:36:03 +01:00
osxaudio osxaudio: fixes playback of mono streams with no channel-mask field in caps 2017-05-20 18:33:42 +02:00
osxvideo osxvideo: fix macOS 10.12 deprecation warnings 2017-05-20 11:37:27 +02:00
v4l2 v4l2: increase by one the number of allocated buffers 2017-06-29 15:13:18 -04:00
waveform Remove plugin specific static build option 2017-05-16 14:41:19 -04:00
ximage Remove plugin specific static build option 2017-05-16 14:41:19 -04:00
Makefile.am sys: remove sunaudio plugin 2017-06-23 20:02:43 +01:00
meson.build sys: remove sunaudio plugin 2017-06-23 20:02:43 +01:00