Fix recording settings being discarded by the Camera QML type.
Query existing settings from the recorder instead of locally cached settings as some other agent may have applied some settings separately and those would otherwise be discarded. Change-Id: I0ebeaf06c6f7306c5987aa269032842b538a6a8b Reviewed-by: John Brooks <john.brooks@dereferenced.net> Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
2ec3645b72
commit
61001f8dd5
@@ -267,6 +267,7 @@ QSize QDeclarativeCameraCapture::resolution()
|
||||
|
||||
void QDeclarativeCameraCapture::setResolution(const QSize &captureResolution)
|
||||
{
|
||||
m_imageSettings = m_capture->encodingSettings();
|
||||
if (captureResolution != resolution()) {
|
||||
m_imageSettings.setResolution(captureResolution);
|
||||
m_capture->setEncodingSettings(m_imageSettings);
|
||||
|
||||
Reference in New Issue
Block a user