main: Redo buffer handling in camera-gstreamer 73/29173/1
authorMarius Vlad <marius.vlad@collabora.com>
Mon, 28 Aug 2023 08:57:32 +0000 (11:57 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Mon, 28 Aug 2023 10:16:23 +0000 (13:16 +0300)
commit8f9f567e0cd39f93ee5298afe95e17f76cb0413f
tree3a0c121ec8b23e92a20b0a2d9c001bd16928dcf3
parente48e0b3102b63a65944463c807b4c2d851bda3f4
main: Redo buffer handling in camera-gstreamer

Using this time a buffer list, similar to what simple-shm is doing to avoid
getting back that a buffer is busy, due to *not* prunning older buffers.
As such, double buffering seems to be sufficient so we don't need to
resort to having 3 buffers.

This should fix switching back and forth between other applications and
the camera application. Tested with vivid module.

Bug-AGL: SPEC-4884
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ia3987782b3e107a0055f9680fecfed0f9a96eec6
app/main.cpp