summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2018-09-28 15:07:44 +0200
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2018-11-05 12:47:04 +0000
commit27ab485e6a28dc081152ed8a8867ae51220479ba (patch)
treef666b264b53ea2312948b532bc7e31da08264935 /examples
parent30cbbd98e7159de08bb71ab4332dbd0bab19eba5 (diff)
Gstreamer: Fix camera example to apply video settings
To apply custom video settings it requires to reload the camera. Task-number: QTBUG-51769 Task-number: QTBUG-69895 Change-Id: Ib01cbe8bb1d022a66c57b7f8fb9bd06ebb0393c8 Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/multimediawidgets/camera/camera.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/multimediawidgets/camera/camera.cpp b/examples/multimediawidgets/camera/camera.cpp
index 85fe0f0b..83922765 100644
--- a/examples/multimediawidgets/camera/camera.cpp
+++ b/examples/multimediawidgets/camera/camera.cpp
@@ -226,6 +226,9 @@ void Camera::configureVideoSettings()
m_audioSettings,
m_videoSettings,
m_videoContainerFormat);
+
+ m_camera->unload();
+ m_camera->start();
}
}