v4l2bufferpool: Don't stop streaming when pool is flushing
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Sat, 5 Aug 2017 16:23:30 +0000 (12:23 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 19 Sep 2017 21:33:35 +0000 (17:33 -0400)
commit1f902e2f6e958de9f97df8142564bee82d41256b
tree561ab56df473f1d1bde748a5208910e7c844234b
parenta802f5df424685f7af9471c650cc0cd5ef196c0c
v4l2bufferpool: Don't stop streaming when pool is flushing

The purpose of being able to flush the buffer pool is only to
unlock any blocked operation. Doing streamoff/streamon had the
side effect of turning off and on the camera. As we do a flush_start
/ flush_stop sequence when shutting down, that would cause a really
quick sequence of streamoff/streamon/streamoff/close which was
causing some cameras to stop working.

https://bugzilla.gnome.org/show_bug.cgi?id=783945
sys/v4l2/gstv4l2bufferpool.c
sys/v4l2/gstv4l2bufferpool.h
sys/v4l2/gstv4l2transform.c
sys/v4l2/gstv4l2videodec.c
sys/v4l2/gstv4l2videoenc.c