Merge remote-tracking branch 'origin/release' into stable
Change-Id: Ieb521fb1e9f297a167eea19c771cb5915c01df97
This commit is contained in:
@@ -286,8 +286,10 @@ void QAndroidCameraSession::close()
|
||||
|
||||
void QAndroidCameraSession::setVideoPreview(QObject *videoOutput)
|
||||
{
|
||||
if (m_videoOutput)
|
||||
if (m_videoOutput) {
|
||||
m_videoOutput->stop();
|
||||
m_videoOutput->reset();
|
||||
}
|
||||
|
||||
if (videoOutput) {
|
||||
connect(videoOutput, SIGNAL(readyChanged(bool)), this, SLOT(onVideoOutputReady(bool)));
|
||||
@@ -368,8 +370,12 @@ void QAndroidCameraSession::stopPreview()
|
||||
|
||||
m_camera->stopPreview();
|
||||
m_camera->setPreviewSize(QSize());
|
||||
if (m_videoOutput)
|
||||
m_camera->setPreviewTexture(0);
|
||||
|
||||
if (m_videoOutput) {
|
||||
m_videoOutput->stop();
|
||||
m_videoOutput->reset();
|
||||
}
|
||||
m_previewStarted = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user