Skip to content

Commit 8dc94ad

Browse files
Williangalvanipatrickelectric
authored andcommitted
PhotoVideoControl.qml: check if camera captures video before telling it to do so
This allows recording video locally in QGC when the camera doesn't advertise it is able to record the video by itself.
1 parent 04991d5 commit 8dc94ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FlightMap/Widgets/PhotoVideoControl.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Rectangle {
101101

102102
function toggleShooting() {
103103
console.log("toggleShooting", _anyVideoStreamAvailable)
104-
if (_mavlinkCamera) {
104+
if (_mavlinkCamera && _mavlinkCamera.capturesVideo) {
105105
if(_mavlinkCameraInVideoMode) {
106106
_mavlinkCamera.toggleVideo()
107107
} else {

0 commit comments

Comments
 (0)