camerabin: Create imagebin elements when image mode is set in camerabin NULL state
authorLasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>
Fri, 19 Nov 2010 20:01:41 +0000 (17:01 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 23 Nov 2010 13:04:24 +0000 (10:04 -0300)
commit5c2f805199c461133c8617ca1da51b84a7622cf2
tree90cfe14846d33cd57bf8ba1da804fa00596ed5ba
parente307bfe6e6e8b28782281dd2af250eeb155c8881
camerabin: Create imagebin elements when image mode is set in camerabin NULL state

This patch refactors imagebin element creation and linking into separate functions,
and adds re-using also for imagebin internally created elements.

So this refactoring allows creating imagebin elements already in NULL state when
application sets the image mode, and next state change from NULL to READY will be faster.
This reduces first capture latency.

Earlier the elements were both created and linked in NULL to READY state change.
gst/camerabin/camerabinimage.c
gst/camerabin/camerabinimage.h
gst/camerabin/gstcamerabin.c