Commit 2ea48400 authored by Jasem Mutlaq's avatar Jasem Mutlaq

On CCD change, check whether video streaming is ongoing

parent 7dd0b94d
......@@ -607,6 +607,7 @@ void Capture::checkCCD(int ccdNum)
}
liveVideoB->setEnabled(currentCCD->hasVideoStream());
setVideoStreamEnabled(currentCCD->isStreamingEnabled());
connect(currentCCD, SIGNAL(numberUpdated(INumberVectorProperty*)), this, SLOT(processCCDNumber(INumberVectorProperty*)), Qt::UniqueConnection);
connect(currentCCD, SIGNAL(newTemperatureValue(double)), this, SLOT(updateCCDTemperature(double)), Qt::UniqueConnection);
......
......@@ -1889,4 +1889,12 @@ bool CCD::setVideoStreamEnabled(bool enable)
return true;
}
bool CCD::isStreamingEnabled()
{
if (HasVideoStream == false || streamWindow == NULL)
return false;
return streamWindow->isStreamEnabled();
}
}
......@@ -176,6 +176,7 @@ public:
// Video Stream
bool setVideoStreamEnabled(bool enable);
bool isStreamingEnabled();
FITSViewer *getViewer() { return fv;}
CCDChip * getChip(CCDChip::ChipType cType);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment