basecamerabinsrc: Protection for previewpipeline when setting new preview caps
authorLauri Lehtinen <lauri.lehtinen@digia.com>
Fri, 8 Apr 2011 12:22:11 +0000 (09:22 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 16 May 2011 21:08:39 +0000 (18:08 -0300)
commit802028081c5a33e4b596eba99508d7bd8d8771b5
tree666ca38f4a675e28d42c5f6feebfe7ad70d7e16e
parentaa4df686eb697b6af02ce449672cc59a9d5407cc
basecamerabinsrc: Protection for previewpipeline when setting new preview caps

Implements a state indicating flag to preview pipeline,
so that new caps are not set if the pipeline is processing a
preview. The caps are set as pending and applied when the
next preview post is called.

In this case a wait was implemented in the post_preview function,
so that new preview image buffer will wait until the other previews
have been posted to the application and the new caps can be used
safely.
gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c
gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.h