diff --git a/src/VideoStreaming/VideoReceiver.cc b/src/VideoStreaming/VideoReceiver.cc index 64202b8523cd2871e81ea2b9a76cd76d7821da68..e382d8ed322c1c1ac0213b963248f4cf7b2d6fb7 100644 --- a/src/VideoStreaming/VideoReceiver.cc +++ b/src/VideoStreaming/VideoReceiver.cc @@ -70,7 +70,7 @@ GstPadProbeReturn VideoReceiver::_unlinkCB(GstPad* pad, GstPadProbeInfo* info, g return GST_PAD_PROBE_OK; // Also unlinks and unrefs - gst_bin_remove_many(GST_BIN (_pipeline), _sink->queue, _sink->mux, _sink->filesink, NULL); + gst_bin_remove_many(GST_BIN(_pipeline), _sink->queue, _sink->mux, _sink->filesink, NULL); // Give tee its pad back gst_element_release_request_pad(_tee, _sink->teepad); diff --git a/src/ui/toolbar/MainToolBarIndicators.qml b/src/ui/toolbar/MainToolBarIndicators.qml index 46b8940f90534b8ef537862a9a022032c8604261..d6d700294e89d36c2d9fc3936ce2289823f33257 100644 --- a/src/ui/toolbar/MainToolBarIndicators.qml +++ b/src/ui/toolbar/MainToolBarIndicators.qml @@ -489,28 +489,6 @@ Item { } } - //------------------------------------------------------------------------- - //-- Video Recording - Item { - anchors.top: parent.top - anchors.bottom: parent.bottom - width: height - visible: QGroundControl.videoManager.videoRunning - - Rectangle { - anchors.top: parent.top - anchors.bottom: parent.bottom - width: height - radius: QGroundControl.videoManager.videoReceiver.recording ? 0 : height - color: colorRed - } - - MouseArea { - anchors.fill: parent - onClicked: QGroundControl.videoManager.videoReceiver.recording? QGroundControl.videoManager.videoReceiver.stopRecording() : QGroundControl.videoManager.videoReceiver.startRecording() - } - } - //------------------------------------------------------------------------- //-- Mode Selector QGCLabel { @@ -563,6 +541,37 @@ Item { onClicked: flightModesMenu.popup() } } // QGCLabel - Flight mode selector + + Rectangle { +// anchors.margins: ScreenTools.defaultFontPixelHeight / 2 + anchors.top: parent.top + anchors.bottom: parent.bottom + width: 1 + color: qgcPal.text + visible: QGroundControl.videoManager.videoRunning + } + + //------------------------------------------------------------------------- + //-- Video Recording + Item { + anchors.top: parent.top + anchors.bottom: parent.bottom + width: height + visible: QGroundControl.videoManager.videoRunning + + Rectangle { + anchors.top: parent.top + anchors.bottom: parent.bottom + width: height + radius: QGroundControl.videoManager.videoReceiver.recording ? 0 : height + color: colorRed + } + + MouseArea { + anchors.fill: parent + onClicked: QGroundControl.videoManager.videoReceiver.recording? QGroundControl.videoManager.videoReceiver.stopRecording() : QGroundControl.videoManager.videoReceiver.startRecording() + } + } } // Row - Vehicle indicators Image {