Remove workaround for resolved gstreamer bug.
Reloading the capture pipeline before recording is unnecessary and introduces a big pause. Don't do it. https://bugzilla.gnome.org/show_bug.cgi?id=649832 was resolved in gstreamer 0.10.23 Change-Id: I0de02af52dcc193bce7a4e3e61407ae1c2d3818c Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
ff2cac464c
commit
0be45b5669
@@ -115,10 +115,11 @@ void CameraBinControl::setCaptureMode(QCamera::CaptureModes mode)
|
||||
captureMode() == QCamera::CaptureStillImage ?
|
||||
CamerabinResourcePolicy::ImageCaptureResources :
|
||||
CamerabinResourcePolicy::VideoCaptureResources);
|
||||
|
||||
#if (GST_VERSION_MAJOR == 0) && ((GST_VERSION_MINOR < 10) || (GST_VERSION_MICRO < 23))
|
||||
//due to bug in v4l2src, it's necessary to reload camera on video caps changes
|
||||
//https://bugzilla.gnome.org/show_bug.cgi?id=649832
|
||||
reloadLater();
|
||||
#endif
|
||||
}
|
||||
emit captureModeChanged(mode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user