camerabin2: Fix A/V sync for captures
authorThiago Santos <thiago.sousa.santos@collabora.com>
Mon, 19 Dec 2011 19:49:08 +0000 (16:49 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Tue, 20 Dec 2011 18:05:27 +0000 (15:05 -0300)
commit0ce5021058e74bd956612c3b23f37582477a7a8d
treead74b54ed58b09191aeb93a7e71e9b75e325495d
parent24407f0aa6012e055ec33c3ab6175a299413f389
camerabin2: Fix A/V sync for captures

Audio src was pushing newsegments starting from 0, even when its buffers
were not starting with 0 as their timestamps. Add a buffer probe that
checks the ts of the first buffer and uses that to push a newsegment,
just like we do for video on wrappercamerabinsrc.
gst/camerabin2/gstcamerabin2.c
gst/camerabin2/gstcamerabin2.h