diff --git a/src/Camera/QGCCameraControl.cc b/src/Camera/QGCCameraControl.cc index f4e5c22..dd2125a 100644 --- a/src/Camera/QGCCameraControl.cc +++ b/src/Camera/QGCCameraControl.cc @@ -2156,7 +2156,7 @@ QGCVideoStreamInfo::QGCVideoStreamInfo(QObject* parent, const mavlink_video_stre //----------------------------------------------------------------------------- qreal -QGCVideoStreamInfo::aspectRatio() +QGCVideoStreamInfo::aspectRatio() const { qreal ar = 1.0; if(_streamInfo.resolution_h && _streamInfo.resolution_v) { diff --git a/src/Camera/QGCCameraControl.h b/src/Camera/QGCCameraControl.h index 7bf2f4c..b5a25bb 100644 --- a/src/Camera/QGCCameraControl.h +++ b/src/Camera/QGCCameraControl.h @@ -40,11 +40,11 @@ public: QString uri () { return QString(_streamInfo.uri); } QString name () { return QString(_streamInfo.name); } - qreal aspectRatio (); - qreal hfov () { return _streamInfo.hfov; } - int type () { return _streamInfo.type; } - int streamID () { return _streamInfo.stream_id; } - bool isThermal () { return _streamInfo.flags & VIDEO_STREAM_STATUS_FLAGS_THERMAL; } + qreal aspectRatio () const; + qreal hfov () const{ return _streamInfo.hfov; } + int type () const{ return _streamInfo.type; } + int streamID () const{ return _streamInfo.stream_id; } + bool isThermal () const{ return _streamInfo.flags & VIDEO_STREAM_STATUS_FLAGS_THERMAL; } bool update (const mavlink_video_stream_status_t* vs);