camerabin: prevent captures from being lost when switching resolutions
authorThiago Santos <thiago.sousa.santos@collabora.com>
Thu, 2 Feb 2012 16:33:02 +0000 (13:33 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Mon, 6 Feb 2012 13:48:32 +0000 (10:48 -0300)
commit3b549c4dbdbe1129f4bbc0be3a9caf3b1c8ca22d
treece5c2dc883221655279c241cbbf9a853c68f273e
parent9bd40e92ce4b4558be90f6f5a202812267149ebe
camerabin: prevent captures from being lost when switching resolutions

When switching capture caps, camerabin1 resets its state to ready
to force a new caps to be negotiated. This causes ongoing captures
to be aborted.

This commit adds a condition to wait for captures to finish before
going to ready state.
gst/camerabin/gstcamerabin.c
gst/camerabin/gstcamerabin.h