GStreamer: fix QMediaRecorder::duration() when recording with a camera v5.4.0-beta1
authorYoann Lopes <yoann.lopes@digia.com>
Thu, 2 Oct 2014 12:21:20 +0000 (14:21 +0200)
committerYoann Lopes <yoann.lopes@theqtcompany.com>
Fri, 3 Oct 2014 09:38:49 +0000 (11:38 +0200)
commitca94dc79b6f0e57ba7446a87c70398a178fbcac8
treee3788d7eed190decde903c7ff3fe7f3e7b7d7746
parentf02d9e934322fbf9af8a5503c1bda37552988b2b
GStreamer: fix QMediaRecorder::duration() when recording with a camera

To get the recording duration, we were using the camerabin's position,
which represents the time since it was started, not the time it's been
recording to a file.
We now retrieve the camerabin's filesink position.

Change-Id: I68eeb25d1718666288655d22deea23e25de73b90
Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
src/plugins/gstreamer/camerabin/camerabinsession.cpp